]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Use Http::ProtocolVersion in config parsing
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 23 May 2017 10:35:48 +0000 (22:35 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 23 May 2017 10:35:48 +0000 (22:35 +1200)
src/cache_cf.cc

index b1ff56bcecb27c684f25156a8a6eaff02222ae2e..f983910137e54b1f4e4b0e612d1c59a28e101ecd 100644 (file)
@@ -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);