perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <>
Subject Re: $r->headers_out->set('Server' => 'foo');
Date Sat, 01 Dec 2007 01:01:33 GMT

Fred Moyer wrote:
> Greetings,
> I'm trying to figure out where in the mod_perl innards I need to look to
>  map the accessor for the Server header.

mod_perl.c - grep for ap_add_version_component

> I've changed core.c in httpd so that set_banner() is deactivated.  This
> results in a Server header of 'mod_perl/2.0.4-dev Perl/v5.8.8', so I
> think that change is all that is needed to keep apache from overwriting
> the header.
> I don't see anything in xs/maps/ so I figure that
> I have to add server in there somehow?

you can call add_version_component() from perl, IIRC.  but httpd will
always override the Server header, so the syntax in the subject will
never dwym.



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message