Subject: | Apache2-Pod-HTML bug |
Date: | Fri, 30 Nov 2007 12:07:52 +0000 |
To: | bug-Apache2-Pod [...] rt.cpan.org |
From: | Philip.Cole [...] sophos.com |
Hello,
I've been involved in migrating our webservers from Apache 1.3 to Apache
2.2 on RedHat Enterprise Linux 5 and I've come up against a bug in
Apache2::Pod::HTML which I believe you wrote and maintain.
On 2 lines in that file, you include the line $r->send_http_header which
no longer exists with an Apache2::RequestRec object. Apache2 doesn't
require the line and I found that the module works fine with the lines
commented out. I have included the output from diff -u below.
--- Apache2/Pod/HTML-fixed.pm 2007-11-30 11:57:56.000000000
+0000
+++ Apache2/Pod/HTML.pm 2007-01-05 01:46:05.000000000 +0000
@@ -117,7 +117,7 @@
if ( $r->path_info eq '/auto.css' ) {
$r->content_type( 'text/css' );
- #$r->send_http_header;
+ $r->send_http_header;
$r->print( _css() );
return Apache2::Const::OK;
}
@@ -170,7 +170,7 @@
};
}
$r->content_type('text/html');
- #$r->send_http_header;
+ $r->send_http_header;
$r->print( $body );
return Apache2::Const::OK;
Regards
Phil
--
Philip Cole
Perl Programmer, Global Web Group, Sophos
Tel: 01235 559933
Web: http://www.sophos.com
Sophos - security and control
Sophos Plc, The Pentagon, Abingdon Science Park, Abingdon,
OX14 3YP, United Kingdom.
Company Reg No 2096520. VAT Reg No GB 348 3873 20.