httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roy T. Fielding" <field...@liege.ICS.UCI.EDU>
Subject Re: [BUG]: "UPDATE: CGI outputting Location: redirect not working" on FreeBSD (fwd)
Date Thu, 06 Feb 1997 02:00:26 GMT
> How about this as a solution:
> 
> Index: http_protocol.c
> ===================================================================
> RCS file: /export/home/cvs/apache/src/http_protocol.c,v
> retrieving revision 1.12
> diff -u -r1.12 http_protocol.c
> --- http_protocol.c     1997/01/31 22:26:42     1.12
> +++ http_protocol.c     1997/02/06 01:06:29
> @@ -1186,7 +1186,7 @@
>  
>  int should_client_block (request_rec *r)
>  {
> -    if (is_HTTP_ERROR(r->status))
> +    if (is_HTTP_ERROR(r->status) || is_HTTP_REDIRECT(r->status))
>         return 0;
>  
>      if (!r->read_chunked && (r->remaining <= 0))

Nope.  Fix the problem at its source, not the side-effect.  The problem
is that the internal redirect is inheriting the request state, which
it should not be doing.  The solution is to replace the hack in mod_cgi
with a clean request without the old Content-Length/Transfer-Encoding
fields of the original.

....Roy

Mime
View raw message