> > The following patch allows this to be worked around using our
> > standard BrowserMatch envariable mechanism. It's against
> > 1.3, since that's the version with the most penetration at
> > the moment and where the problem is most visible.
>
>+1 with the caveat that this needs to go into 2.0 too. -- justin
Attached is a proposed patch against 2.0.40 (nearly the same as for 1.3..)
(i hope the patch format is ok - diff -u on windows)
--- src/modules/http/http_protocol-old.c Sun Aug 04 11:24:10 2002
+++ src/modules/http/http_protocol.c Mon Aug 12 20:27:37 2002
@@ -2261,7 +2261,13 @@
r->content_languages = NULL;
r->content_encoding = NULL;
r->clength = 0;
- ap_set_content_type(r, "text/html; charset=iso-8859-1");
+
+ if (apr_table_get(r->subprocess_env, "suppress-error-charset") !=
NULL) {
+ ap_set_content_type(r, "text/html");
+ }
+ else {
+ ap_set_content_type(r, "text/html; charset=iso-8859-1");
+ }
if ((status == HTTP_METHOD_NOT_ALLOWED)
|| (status == HTTP_NOT_IMPLEMENTED)) {
--
If you're on your own in this life, the days and nights are long
-- REM, "Everybody Hurts"
- http://jgcl.at/ko/ - new photos from summer camp 2002 in Moosen/Tirol