larryi 01/09/08 13:04:28
Modified: src/native/mod_jk/apache1.3 mod_jk.c
Log:
The fix to add a content-length:0 altered the desired behavior when
is_chunked is true. Restore prior chunked behavior.
Revision Changes Path
1.14 +1 -1 jakarta-tomcat/src/native/mod_jk/apache1.3/mod_jk.c
Index: mod_jk.c
===================================================================
RCS file: /home/cvs/jakarta-tomcat/src/native/mod_jk/apache1.3/mod_jk.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- mod_jk.c 2001/09/05 09:32:39 1.13
+++ mod_jk.c 2001/09/08 20:04:28 1.14
@@ -485,7 +485,7 @@
s->headers_values = NULL;
s->num_headers = 0;
if(r->headers_in && ap_table_elts(r->headers_in)) {
- int need_content_length_header = (s->content_length == 0) ? JK_TRUE :
JK_FALSE;
+ int need_content_length_header = (!s->is_chunked && s->content_length == 0)
? JK_TRUE : JK_FALSE;
array_header *t = ap_table_elts(r->headers_in);
if(t && t->nelts) {
int i;