]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/http.cc
Fixes and polishing in response to Amos' squid-dev review dated 2014/08/10.
[thirdparty/squid.git] / src / http.cc
index 04bb1ef385a294e4c709cb1d77a6f7ebc4c859c5..708c6c12d62e20493970246150e51ad441373703 100644 (file)
@@ -1494,6 +1494,15 @@ HttpStateData::processReplyBody()
     maybeReadVirginBody();
 }
 
+bool
+HttpStateData::mayReadVirginReplyBody() const
+{
+    // TODO: Be more precise here. For example, if/when reading trailer, we may
+    // not be doneWithServer() yet, but we should return false. Similarly, we
+    // could still be writing the request body after receiving the whole reply.
+    return !doneWithServer();
+}
+
 void
 HttpStateData::maybeReadVirginBody()
 {