From: Amos Jeffries Date: Mon, 1 Mar 2010 11:05:56 +0000 (+1300) Subject: Bug 2787: unknown/unexpected status code messages X-Git-Tag: SQUID_3_1_0_18~19 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7f9128f7bc70e746124bfafb4cef7d09ef79c080;p=thirdparty%2Fsquid.git Bug 2787: unknown/unexpected status code messages --- diff --git a/src/http.cc b/src/http.cc index 8511b9f233..a5566f2584 100644 --- a/src/http.cc +++ b/src/http.cc @@ -539,8 +539,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;