From: Amos Jeffries Date: Mon, 2 May 2016 03:42:53 +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=137a601e337388c34cf4450db4a8a3534d855519;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 91829d5d3e..59f047ac25 100644 --- a/src/mime_header.cc +++ b/src/mime_header.cc @@ -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;