From: Amos Jeffries Date: Tue, 23 May 2017 10:35:48 +0000 (+1200) Subject: Use Http::ProtocolVersion in config parsing X-Git-Tag: M-staged-PR71~166 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=41cb7fe5b01bc5d242be88ddce76abb291da0d00;p=thirdparty%2Fsquid.git Use Http::ProtocolVersion in config parsing --- diff --git a/src/cache_cf.cc b/src/cache_cf.cc index b1ff56bcec..f983910137 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -3511,7 +3511,7 @@ parsePortProtocol(const SBuf &value) // HTTP/1.0 not supported because we are version 1.1 which contains a superset of 1.0 // and RFC 2616 requires us to upgrade 1.0 to 1.1 if (value.cmp("HTTP") == 0 || value.cmp("HTTP/1.1") == 0) - return AnyP::ProtocolVersion(AnyP::PROTO_HTTP, 1,1); + return Http::ProtocolVersion(1,1); if (value.cmp("HTTPS") == 0 || value.cmp("HTTPS/1.1") == 0) return AnyP::ProtocolVersion(AnyP::PROTO_HTTPS, 1,1);