]> 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 03:42:53 +0000 (15:42 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 2 May 2016 03:42:53 +0000 (15:42 +1200)
src/mime_header.cc

index 91829d5d3ec6756ef9188a1058cb30c01d4eb578..59f047ac25972ec35bae9e2c6d193d902b825914 100644 (file)
@@ -62,9 +62,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;