On Fri, 7 Apr 2006, Geoffrey Young wrote:



Miles Crawford wrote:

On:
http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html#C_headers_out_
and
http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html#C_err_headers_out_


it is suggested that the proper syntax for adding a header is:

$r->headers_out->add('Set-Cookie' => $cookie);

This howerver does not work.

of course it does.  you can see from yourself in the mod_perl test suite:

t/response/TestAPI/err_headers_out.pm [21]:
$r->err_headers_out->add('X-err_headers_out' => "err_headers_out");


All of your responses have been about $r->err_headers_out, my trouble was with $r->headers_out() which really, honestly didn't work. However, as stated earlier in the thread that was a bug that's apparently been fixed.

$r->headers_out->{'Pragma'} = "no-cache";

this documentation is for the compat layer.  I can't recall offhand whether
this syntax works without Apache2::compat or not.

Thanks - I must have missed the distinction between the 2.0 API docs and the compatability layer docs.

-miles

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to