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

index 7573c7f237ee12d09d72b67273b17376e6200e26..f6ee6da6570aae558a61815f8792b48555d727c1 100644 (file)
@@ -40,9 +40,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;