On Thu, Mar 07, 2002 at 05:43:20PM -0800, John Sterling wrote:
> I think this is a general problem with get_canned_error_string - something 
> like the following should fix that
> 
> 
> Index: modules/http/http_protocol.c
> ===================================================================
> RCS file: /home/cvspublic/httpd-2.0/modules/http/http_protocol.c,v
> retrieving revision 1.393
> diff -u -r1.393 http_protocol.c
> --- modules/http/http_protocol.c      4 Mar 2002 05:54:44 -0000       1.393
> +++ modules/http/http_protocol.c      8 Mar 2002 01:42:06 -0000
> @@ -1618,6 +1618,7 @@
>      apr_pool_t *p = r->pool;
>      const char *error_notes, *h1, *s1;
>  
> +    r->content_type = "text/html";
>      switch (status) {
>      case HTTP_MOVED_PERMANENTLY:
>      case HTTP_MOVED_TEMPORARILY:

John posted this patch awhile ago. I'm +1 and will commit in 24 hours
unless someone speaks up with a reason not to.

-aaron

Reply via email to