--------------------- PatchSet 9007 Date: 2007/03/12 22:43:04 Author: hno Branch: http11 Tag: (none) Log: Resurrect the content-length change backed out in Bug #1915. The change as such is correct and needed for proper operation in HTTP/1.1, and we need to deal with the early response to PUT/POST problem somehow else (remains to be done) Members: src/client_side.c:1.154.2.15->1.154.2.16 Index: squid/src/client_side.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/client_side.c,v retrieving revision 1.154.2.15 retrieving revision 1.154.2.16 diff -u -r1.154.2.15 -r1.154.2.16 --- squid/src/client_side.c 12 Mar 2007 22:05:39 -0000 1.154.2.15 +++ squid/src/client_side.c 12 Mar 2007 22:43:04 -0000 1.154.2.16 @@ -1,6 +1,6 @@ /* - * $Id: client_side.c,v 1.154.2.15 2007/03/12 22:05:39 hno Exp $ + * $Id: client_side.c,v 1.154.2.16 2007/03/12 22:43:04 hno Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -2994,10 +2994,7 @@ } else if ((done = clientCheckTransferDone(http)) != 0 || size == 0) { debug(33, 5) ("clientWriteComplete: FD %d transfer is DONE\n", fd); /* We're finished case */ - if (httpReplyBodySize(http->request->method, entry->mem_obj->reply) < 0) { - debug(33, 5) ("clientWriteComplete: closing, content_length < 0\n"); - comm_close(fd); - } else if (!done) { + if (!done) { debug(33, 5) ("clientWriteComplete: closing, !done\n"); comm_close(fd); } else if (clientGotNotEnough(http)) {