--------------------- PatchSet 11221 Date: 2007/02/02 18:35:23 Author: hno Branch: HEAD Tag: (none) Log: Upgrade HTTP/0.9 responses to our HTTP version (HTTP/1.0) Members: src/http.c:1.423->1.424 Index: squid/src/http.c =================================================================== RCS file: /cvsroot/squid/squid/src/http.c,v retrieving revision 1.423 retrieving revision 1.424 diff -u -r1.423 -r1.424 --- squid/src/http.c 1 Feb 2007 12:53:58 -0000 1.423 +++ squid/src/http.c 2 Feb 2007 18:35:23 -0000 1.424 @@ -1,6 +1,6 @@ /* - * $Id: http.c,v 1.423 2007/02/01 12:53:58 hno Exp $ + * $Id: http.c,v 1.424 2007/02/02 18:35:23 hno Exp $ * * DEBUG: section 11 Hypertext Transfer Protocol (HTTP) * AUTHOR: Harvest Derived @@ -929,6 +929,18 @@ httpState->fwd->flags.dont_retry = 1; comm_close(fd); return; + } else if (s == HTTP_INVALID_HEADER) { + MemBuf mb; + HttpReply *reply = entry->mem_obj->reply; + httpReplyReset(reply); + httpBuildVersion(&reply->sline.version, 1, 0); + reply->sline.status = HTTP_OK; + httpHeaderPutTime(&reply->header, HDR_DATE, squid_curtime); + mb = httpReplyPack(reply); + storeAppend(entry, mb.buf, mb.size); + httpReplyReset(reply); + httpReplyParse(reply, mb.buf, mb.size); + memBufClean(&mb); } #if WIP_FWD_LOG fwdStatus(httpState->fwd, s);