Summary: | ErrorDocument 4xx "text" uses text/html | ||
---|---|---|---|
Product: | Apache httpd-2 | Reporter: | Bj <bjoern> |
Component: | Core | Assignee: | Apache HTTPD Bugs Mailing List <bugs> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 2.0.54 | ||
Target Milestone: | --- | ||
Hardware: | Other | ||
OS: | other |
Description
Bj
2005-08-30 01:54:41 UTC
For 1.3: See suppress-error-charset description at http://httpd.apache.org/docs/1.3/env.html That will suppress the automatic "charset=iso-8859-1", if you can manage to set suppress-error-charset for the appropriate set of requests. Those docs say that it is in Apache >= 2.0.40, but it won't be in Apache 2.0 until 2.0.55. The main concern is that it uses text/html even though most people probably would not use a complete HTML document in ErrorDocument directive. So the "redirect" in the suppress-error-charset refers to any "Redirect" redirect? Since for the "Redirect 402 /" directive Apache would not generate a redirect in HTTP terms. From the documentation I'd call it suppress-redirect-charset. I don't see the harm here in using text/html. For any short piece of text it is going to look the same regardless of the content-type, and this allows you to use some simple html if you want to. |