]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 2877: pt2: only output zero-size warning on reverse-proxy requests
authorAmos Jeffries <amosjeffries@squid-cache.org>
Fri, 28 May 2010 04:21:43 +0000 (22:21 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Fri, 28 May 2010 04:21:43 +0000 (22:21 -0600)
src/http.cc

index aaf91749e74fd77ef27d975442aad0d0ea06ead7..e8f4f259ce063b82f2050fe4834c53ebd8400490 100644 (file)
@@ -1208,7 +1208,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() );
         }
     }