From: Steinar H. Gunderson Date: Wed, 22 Jul 2015 09:48:30 +0000 (+0200) Subject: Tabs are seemingly accepted as linear white space in HTTP headers. X-Git-Tag: 1.2.0~17 X-Git-Url: https://git.sesse.net/?p=cubemap;a=commitdiff_plain;h=8d15ccbfc46a7f0b96a47109d8f8f2495082b8f6 Tabs are seemingly accepted as linear white space in HTTP headers. --- diff --git a/parse.cpp b/parse.cpp index c33543f..37b5436 100644 --- a/parse.cpp +++ b/parse.cpp @@ -72,7 +72,7 @@ multimap extract_headers(const vector &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());