[Mod_transform] HTTP 1.1 chunking
Tom Jett
tjett at jajholding.com
Wed Jan 9 10:58:20 EST 2008
I've noticed a problem with apache-2.0.59 downgrading IE HTTP 1.1 SSL
requests to HTTP 1.0 and then mod_transform-0.0.6 chunking the data back
to IE anyway.
Anyone else noticing this? The following patch fixes my problem.
diff -r -U3 mod_transform-0.6.0.orig/src/mod_transform.c
mod_transform-0.6.0/src/mod_transform.c
--- mod_transform-0.6.0.orig/src/mod_transform.c 2004-10-18
12:01:50.000000000 -0400
+++ mod_transform-0.6.0/src/mod_transform.c 2008-01-08
20:53:01.000000000 -0500
@@ -210,8 +210,12 @@
apr_table_unset(f->r->headers_out, "Content-Length");
}
- if ((f->r->proto_num >= 1001) && !f->r->main && !f->r->prev)
+ if ((f->r->proto_num >= 1001) &&
+ !f->r->main &&
+ !f->r->prev &&
+ !apr_table_get(f->r->subprocess_env, "downgrade-1.0")) {
f->r->chunked = 1;
+ }
for (b = APR_BRIGADE_FIRST(bb);
b != APR_BRIGADE_SENTINEL(bb); b = APR_BUCKET_NEXT(b)) {
Regards,
Tom
More information about the Mod_transform
mailing list