]> git.sesse.net Git - cubemap/blobdiff - parse.cpp
Add suppor for raw (non-Metacube) inputs over HTTP. Only really useful for TS.
[cubemap] / parse.cpp
index c33543f3afc44b12ce1d16fa88a9616dd560b2c2..37b5436bd6d7bc82cd7890e0082ad6a26543f727 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());