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

index d7437f20a2c4cd072a869462ac7c2e7cf28df020..d5f0ef110abbd6c151830af00091244a26106be8 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;