From: Amos Jeffries Date: Mon, 2 May 2016 03:44:32 +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=eafbce0c1bb0adad4cd39dcd08659f3ba0f6c3ed;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 d7437f20a2..d5f0ef110a 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;