]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/adaptation/icap/OptXact.cc
Log PROXY protocol v2 TLVs; fix PROXY protocol parsing bugs (#342)
[thirdparty/squid.git] / src / adaptation / icap / OptXact.cc
index 1dfea873241567744cee7ab8e0a22a9c953b086b..a2233e15d1e8c58bf7b5f6ad59ef9ee2be1d73ff 100644 (file)
@@ -87,8 +87,8 @@ void Adaptation::Icap::OptXact::handleCommRead(size_t)
         // We read everything if there is no response body. If there is a body,
         // we cannot parse it because we do not support any opt-body-types, so
         // we leave readAll false which forces connection closure.
-        readAll = !icapReply->header.getByNameListMember("Encapsulated",
-                  "opt-body", ',').size();
+        readAll = icapReply->header.getByNameListMember("Encapsulated",
+                  "opt-body", ',').isEmpty();
         debugs(93, 7, HERE << "readAll=" << readAll);
         icap_tio_finish = current_time;
         setOutcome(xoOpt);