]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Add a new environment variable to keep the charset from being
authorKen Coar <coar@apache.org>
Mon, 12 Aug 2002 19:19:03 +0000 (19:19 +0000)
committerKen Coar <coar@apache.org>
Mon, 12 Aug 2002 19:19:03 +0000 (19:19 +0000)
included on canned error documents.  (Having it there make
some browsers apply it to the redirect target document.)

Reviewed by: Bill Stoddard, Jim Jagielski, Justin Erenkrantz, Cliff Woolley

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@96362 13f79535-47bb-0310-9956-ffa450edef68

src/CHANGES
src/main/http_protocol.c

index 4a823c4b0f2439d458060005ce6a1f9e2e3022b8..d6823848be9b50100194b0e8594e2b43744e2bf5 100644 (file)
@@ -1,5 +1,10 @@
 Changes with Apache 1.3.27
 
+  *) Add new "suppress-error-charset" environment variable to
+     allow a BrowserMatch workaround for clients that incorrectly
+     use the charset of a redirect as the charset of the target.
+     [Ken Coar]
+
   *) Support Caldera OpenUNIX 8.  [Larry Rosenman <ler@lerctr.org>]
 
   *) Use SysV semaphores by default on OpenBSD. [Henning Brauer 
index 2a9e80813a34c65cea9083113aa8070dcbce536a..3ac861178e32d25113092eb86a6cd39f1d2a60d6 100644 (file)
@@ -2834,7 +2834,13 @@ API_EXPORT(void) ap_send_error_response(request_rec *r, int recursive_error)
         r->content_languages = NULL;
         r->content_encoding = NULL;
         r->clength = 0;
-        r->content_type = "text/html; charset=iso-8859-1";
+        if (ap_table_get(r->subprocess_env,
+                         "suppress-error-charset") != NULL) {
+            r->content_type = "text/html";
+        }
+        else {
+            r->content_type = "text/html; charset=iso-8859-1";
+        }
 
         if ((status == METHOD_NOT_ALLOWED) || (status == NOT_IMPLEMENTED))
             ap_table_setn(r->headers_out, "Allow", make_allow(r));