]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 2877: pt2: only output zero-size warning on reverse-proxy requests
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 26 May 2010 09:05:12 +0000 (21:05 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 26 May 2010 09:05:12 +0000 (21:05 +1200)
src/http.cc

index 6bf8bab74ad35b75e4890736147f5fb2757eb5a7..fe67c9a5fca4f199e0f70bb8ef359d99d16194ab 100644 (file)
@@ -1205,7 +1205,8 @@ HttpStateData::continueAfterParsingHeader()
             debugs(11, DBG_IMPORTANT, "WARNING: HTTP: Invalid Response: Headers did not parse at all for " << entry->url() << " AKA " << orig_request->GetHost() << orig_request->urlpath.termedBuf() );
         } else {
             error = ERR_ZERO_SIZE_OBJECT;
-            debugs(11, DBG_IMPORTANT, "WARNING: HTTP: Invalid Response: No object data received for " << entry->url() << " AKA " << orig_request->GetHost() << orig_request->urlpath.termedBuf() );
+            debugs(11, (orig_request->flags.accelerated?DBG_IMPORTANT:2), "WARNING: HTTP: Invalid Response: No object data received for " <<
+                   entry->url() << " AKA " << orig_request->GetHost() << orig_request->urlpath.termedBuf() );
         }
     }