OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
2.1 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../mod_fastcgi/lp381384.patch
  5. # Copyright (C) 2012 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. References:
  17. http://thread.gmane.org/gmane.comp.web.fastcgi.devel/2613
  18. http://article.gmane.org/gmane.comp.web.fastcgi.devel/1167
  19. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=509116
  20. https://bugs.launchpad.net/ubuntu/+source/libapache-mod-fastcgi/+bug/381384
  21. Patch extracted from the SNAP-0811090952 snapshot tarball.
  22. 2009-05-28 Martin von Gagern
  23. diff -ru mod_fastcgi-2.4.6/CHANGES mod_fastcgi-2.4.6-lp381384/CHANGES
  24. --- mod_fastcgi-2.4.6/CHANGES 2007-11-13 13:26:35.000000000 +0100
  25. +++ mod_fastcgi-2.4.6-lp381384/CHANGES 2009-05-28 21:02:31.000000000 +0200
  26. @@ -1,3 +1,6 @@
  27. + *) Don't let the Content-Length header propagate on errors or across
  28. + redirects. [Artur Zaprzala <arturz ownmail.net>]
  29. +
  30. 2.4.6
  31. *) Fix a bug I introduced in 2.4.4 that broke dynamic application
  32. diff -ru mod_fastcgi-2.4.6/mod_fastcgi.c mod_fastcgi-2.4.6-lp381384/mod_fastcgi.c
  33. --- mod_fastcgi-2.4.6/mod_fastcgi.c 2007-11-13 00:00:10.000000000 +0100
  34. +++ mod_fastcgi-2.4.6-lp381384/mod_fastcgi.c 2009-05-28 21:02:31.000000000 +0200
  35. @@ -753,6 +753,11 @@
  36. ap_table_set(r->headers_out, "Location", value);
  37. continue;
  38. }
  39. +
  40. + if (strcasecmp(name, "Content-Length") == 0) {
  41. + ap_table_set(r->headers_out, name, value);
  42. + continue;
  43. + }
  44. /* If the script wants them merged, it can do it */
  45. ap_table_add(r->err_headers_out, name, value);