httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Bannert <aa...@clove.org>
Subject Re: [PATCH] Re: Apache 2.0.34-dev Sends Wrong Content-Type on 404
Date Fri, 08 Mar 2002 02:04:20 GMT
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

Mime
View raw message