gitweb: Make possible to run under mod_perl without ParseHeadersgitweb/mod_perl
commitc712708e256eaa8673f0f8a8c6e350b3346ab798
authorJakub Narebski <jnareb@gmail.com>
Thu, 28 Dec 2006 19:32:55 +0000 (28 20:32 +0100)
committerJakub Narebski <jnareb@gmail.com>
Fri, 29 Dec 2006 12:17:29 +0000 (29 13:17 +0100)
treebb29a21379baf383aedef7a8e4186ab8fc632289
parent731821fc6cb5c1df808a121783c6bfd7e58ab45c
gitweb: Make possible to run under mod_perl without ParseHeaders

Add mod_perl version of http_header, setting headers directly (both
for mod_perl 2.0 and 1.0); bits of code taken from CGI and CGI::Util
modules.  While at it add cache validation via $r->meets_conditions()
in mod_perl code.

Separate HTTP redirection into http_redirect subroutine and add
mod_perl version, setting headers directly.

All this is meant to allow gitweb to run under ModPerl::Registry (for
mod_perl 2.0) / Apache::Registry (for mod_perl 1.0) without need for
Apache to parse headers (without ParseHeaders), which should speed up
gitweb a bit.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
gitweb/gitweb.perl