Re: lookup_uri() returns 200 when 404 expected

2001-07-06 Thread Paul Sharpe
barries wrote: On Thu, Jul 05, 2001 at 04:03:00PM +0100, Paul Sharpe wrote: barries wrote: On Thu, Jul 05, 2001 at 03:21:12PM +0100, Paul Sharpe wrote: Here's my handler... package Foo::Test; use strict; use warnings; use Apache::Constants qw(:common HTTP_OK

lookup_uri() returns 200 when 404 expected

2001-07-05 Thread Paul Sharpe
Server: Apache/1.3.20 (Unix) mod_perl/1.25 Connection: close Content-Type: text/html; charset=iso-8859-1 Connection closed by foreign host. $ GET http://localhost:8000/test lookup_uri(foo.html) status = 200 Can any one enlighten me? paul -- Paul Sharpe Tel: +44 (20) 7407 5557

Re: lookup_uri() returns 200 when 404 expected

2001-07-05 Thread Paul Sharpe
barries wrote: On Thu, Jul 05, 2001 at 03:21:12PM +0100, Paul Sharpe wrote: Here's my handler... package Foo::Test; use strict; use warnings; use Apache::Constants qw(:common HTTP_OK); sub handler { my $r = shift; my $uri = 'foo.html'; $r-content_type('text/plain

Re: lookup_uri() returns 200 when 404 expected

2001-07-05 Thread Paul Sharpe
barries wrote: On Thu, Jul 05, 2001 at 04:03:00PM +0100, Paul Sharpe wrote: barries wrote: On Thu, Jul 05, 2001 at 03:21:12PM +0100, Paul Sharpe wrote: Here's my handler... package Foo::Test; use strict; use warnings; use Apache::Constants qw(:common HTTP_OK