httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Hartill <r...@imdb.com>
Subject Re: internal redirects after HEAD
Date Mon, 02 Dec 1996 18:01:38 GMT
Dirk.vanGulik wrote:

>> > *** http_request.c.orig	Fri Nov 29 00:32:55 1996
>> > --- http_request.c	Sat Nov 30 23:27:08 1996
>> > ***************
>> > *** 738,743 ****
>> > --- 738,744 ----
>> >   	    /* This redirect needs to be a GET no matter what the original
>> >   	     * method was.
>> >   	     */
>> > +             table_set(r->subprocess_env, "REQUEST_METHOD", r->method);
>> >   	    r->method = pstrdup(r->pool, "GET");
>> >   	    r->method_number = M_GET;
>> >   	    internal_redirect (custom_response, r);

>Might give some funny interaction; as internal_redirect() zaps any and
>all headers in r->headers_out;.

Works for me. It creates an ENVironment variable before redirecting. Headers
are supposed to be zapped. Did you miss that point? or is there a newly
introduced problem ?

rob

Mime
View raw message