DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17877>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17877 mod_proxy not accepting requests using Transfer-Encoding: chunked ------- Additional Comments From [EMAIL PROTECTED] 2003-03-11 14:45 ------- I seem to be unable to create an attachment for this bug so I include a proposed patch as a comment. This patch modifies the module behavior so that requests sent using 'Transfer-Encoding: chunked' are sent as is to the origin server. The patch solves my initial problem but is far from having been fully tested, please provide comments about its adequation with mod_proxy HTTP conformance. ---8<------8<------8<------8<------8<------8<------8<------8<------8<--- --- apache_1.3.27/src/modules/proxy/proxy_http.c.orig Mon Mar 10 15:36:43 2003 +++ apache_1.3.27/src/modules/proxy/proxy_http.c Tue Mar 11 10:56:13 2003 @@ -404,6 +404,14 @@ ap_bvputs(f, reqhdrs_elts[i].key, ": ", reqhdrs_elts[i].val, CRLF, NULL); } + /* + * Output a Transfer-Encoding: chunked header if request used it. + */ + + if (r->read_chunked) { + ap_bvputs(f, "Transfer-Encoding: chunked", CRLF, NULL); + } + /* the obligatory empty line to mark the end of the headers */ ap_bputs(CRLF, f); --- apache_1.3.27/src/modules/proxy/mod_proxy.c.orig Mon Mar 10 15:36:48 2003 +++ apache_1.3.27/src/modules/proxy/mod_proxy.c Mon Mar 10 15:39:16 2003 @@ -319,7 +319,7 @@ ap_psprintf(r->pool, "%ld", (maxfwd > 0) ? maxfwd - 1 : 0)); } - if ((rc = ap_setup_client_block(r, REQUEST_CHUNKED_ERROR))) + if ((rc = ap_setup_client_block(r, REQUEST_CHUNKED_PASS))) return rc; url = r->filename + 6; --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
