From: Amos Jeffries Date: Mon, 2 May 2016 04:09:37 +0000 (+1200) Subject: Require exact match in Host header name lookup X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c4f6c76937cf3f7135bb9286e425aeb9ecb80a9;p=thirdparty%2Fsquid.git Require exact match in Host header name lookup --- diff --git a/src/mime_header.cc b/src/mime_header.cc index 02decf9c1a..f2688b0311 100644 --- a/src/mime_header.cc +++ b/src/mime_header.cc @@ -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;