Tabs are seemingly accepted as linear white space in HTTP headers.
[cubemap] / 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());