projects
/
cubemap
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b6002f
)
Tabs are seemingly accepted as linear white space in HTTP headers.
author
Steinar H. Gunderson
<sgunderson@bigfoot.com>
Wed, 22 Jul 2015 09:48:30 +0000
(11:48 +0200)
committer
Steinar H. Gunderson
<sgunderson@bigfoot.com>
Wed, 22 Jul 2015 09:48:30 +0000
(11:48 +0200)
parse.cpp
patch
|
blob
|
history
diff --git
a/parse.cpp
b/parse.cpp
index
c33543f
..
37b5436
100644
(file)
--- a/
parse.cpp
+++ b/
parse.cpp
@@
-72,7
+72,7
@@
multimap<string, string> extract_headers(const vector<string> &lines, const stri
// Skip any spaces after the colon.
do {
++split;
- } while (split < lines[i].size() &&
lines[i][split] == ' '
);
+ } while (split < lines[i].size() &&
(lines[i][split] == ' ' || lines[i][split] == '\t')
);
string value(lines[i].begin() + split, lines[i].end());