From: Amos Jeffries Date: Sat, 6 Mar 2010 05:04:21 +0000 (+1300) Subject: Bug 2787: unknown/unexpected status code messages X-Git-Tag: SQUID_3_0_STABLE25~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8110a517365d16393e0f575a68d72693c0ac8150;p=thirdparty%2Fsquid.git Bug 2787: unknown/unexpected status code messages --- diff --git a/src/http.cc b/src/http.cc index c36cb2c808..5578f1777b 100644 --- a/src/http.cc +++ b/src/http.cc @@ -569,8 +569,9 @@ HttpStateData::cacheableReply() return 0; - default: /* Unknown status code */ - debugs (11, DBG_IMPORTANT, "WARNING: Unexpected http status code " << rep->sline.status); + default: + /* RFC 2616 section 6.1.1: an unrecognized response MUST NOT be cached. */ + debugs (11, 3, HERE << "Unknown HTTP status code " << rep->sline.status << ". Not cacheable."); return 0;