Description:


The following CGI script:


   print <<EOF;
   Status: 404 Not Found
   Content-Type: text/plain

   Document not found
   EOF


Results in the following:


   Document not found
   <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
   <HTML><HEAD>
   <TITLE>404 Not Found</TITLE>
   </HEAD><BODY>
   <H1>Not Found</H1>
   The requested URL /perl-bin/bug.pl was not found on this server.<P>
   </BODY></HTML>

i.e. the Apache ErrorDocument is appended to the response.


There is a test to reproduce the bug:


http://www.webmatrix.net/.static/bug-reporting-404-not-found-mp1.tar.gz


Tested with Apache/1.3.27 statically compiled with the latest stable mod_perl 1.29.



Very ugly temporary fix: Set the ErrorDocument directive to an almost-empty text file which containing just one space character.



Hope this helps.


Cheers,
Jean-Michel.


-- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Reply via email to