]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Require exact match in Host header name lookup
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 2 May 2016 04:09:37 +0000 (16:09 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 2 May 2016 04:09:37 +0000 (16:09 +1200)
src/mime_header.cc

index 02decf9c1a15552953c397a66d5748aba77b7dfc..f2688b0311b06a4d6afecc1675615e8cec90fffe 100644 (file)
@@ -70,9 +70,6 @@ mime_get_header_field(const char *mime, const char *name, const char *prefix)
         if (strcmp(p, "\r\n\r\n") == 0 || strcmp(p, "\n\n") == 0)
             return NULL;
 
-        while (xisspace(*p))
-            p++;
-
         if (strncasecmp(p, name, namelen))
             continue;