From: Amos Jeffries Date: Wed, 24 Feb 2010 11:19:05 +0000 (+1300) Subject: Bug 2787: unknown/unexpected status code messages X-Git-Tag: SQUID_3_2_0_1~406 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=412179791dc828f78d06623b8d1f6c25478474af;p=thirdparty%2Fsquid.git Bug 2787: unknown/unexpected status code messages --- diff --git a/src/http.cc b/src/http.cc index 22d9014116..5e6335c81c 100644 --- a/src/http.cc +++ b/src/http.cc @@ -542,8 +542,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;