blob: e7c978d10de1f1fb3d1e99fba61fc369e9b722a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
References:
http://thread.gmane.org/gmane.comp.web.fastcgi.devel/2613
http://article.gmane.org/gmane.comp.web.fastcgi.devel/1167
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=509116
https://bugs.launchpad.net/ubuntu/+source/libapache-mod-fastcgi/+bug/381384
Patch extracted from the SNAP-0811090952 snapshot tarball.
2009-05-28 Martin von Gagern
diff -ru mod_fastcgi-2.4.6/CHANGES mod_fastcgi-2.4.6-lp381384/CHANGES
--- mod_fastcgi-2.4.6/CHANGES 2007-11-13 13:26:35.000000000 +0100
+++ mod_fastcgi-2.4.6-lp381384/CHANGES 2009-05-28 21:02:31.000000000 +0200
@@ -1,3 +1,6 @@
+ *) Don't let the Content-Length header propagate on errors or across
+ redirects. [Artur Zaprzala <arturz ownmail.net>]
+
2.4.6
*) Fix a bug I introduced in 2.4.4 that broke dynamic application
diff -ru mod_fastcgi-2.4.6/mod_fastcgi.c mod_fastcgi-2.4.6-lp381384/mod_fastcgi.c
--- mod_fastcgi-2.4.6/mod_fastcgi.c 2007-11-13 00:00:10.000000000 +0100
+++ mod_fastcgi-2.4.6-lp381384/mod_fastcgi.c 2009-05-28 21:02:31.000000000 +0200
@@ -753,6 +753,11 @@
ap_table_set(r->headers_out, "Location", value);
continue;
}
+
+ if (strcasecmp(name, "Content-Length") == 0) {
+ ap_table_set(r->headers_out, name, value);
+ continue;
+ }
/* If the script wants them merged, it can do it */
ap_table_add(r->err_headers_out, name, value);
|