--------------------- PatchSet 8947 Date: 2007/02/24 13:23:52 Author: hno Branch: http11 Tag: (none) Log: Reject chunked requests with 411 Length Required, not 501.. Members: src/client_side.c:1.154.2.4->1.154.2.5 Index: squid/src/client_side.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/client_side.c,v retrieving revision 1.154.2.4 retrieving revision 1.154.2.5 diff -u -r1.154.2.4 -r1.154.2.5 --- squid/src/client_side.c 24 Feb 2007 13:20:12 -0000 1.154.2.4 +++ squid/src/client_side.c 24 Feb 2007 13:23:52 -0000 1.154.2.5 @@ -1,6 +1,6 @@ /* - * $Id: client_side.c,v 1.154.2.4 2007/02/24 13:20:12 hno Exp $ + * $Id: client_side.c,v 1.154.2.5 2007/02/24 13:23:52 hno Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -3876,8 +3876,7 @@ request->my_port = ntohs(conn->me.sin_port); request->client_port = ntohs(conn->peer.sin_port); request->http_ver = http->http_ver; - if (!urlCheckRequest(request) || - httpHeaderHas(&request->header, HDR_TRANSFER_ENCODING)) { + if (!urlCheckRequest(request)) { err = errorCon(ERR_UNSUP_REQ, HTTP_NOT_IMPLEMENTED, request); request->flags.proxy_keepalive = 0; http->al.http.code = err->http_status; @@ -3886,7 +3885,7 @@ errorAppendEntry(http->entry, err); return -1; } - if (!clientCheckContentLength(request)) { + if (!clientCheckContentLength(request) || httpHeaderHas(&request->header, HDR_TRANSFER_ENCODING)) { err = errorCon(ERR_INVALID_REQ, HTTP_LENGTH_REQUIRED, request); http->al.http.code = err->http_status; http->log_type = LOG_TCP_DENIED;