On Fri, Jul 27, 2001 at 11:50:52PM -0400, undercut wrote:
> I think this filter still could use some updating.  It seems the
> methods send_error, send_basic_header, and send_status_line will cause
> a crash from strict refs since it calls the put method with a string
> when it expects arrayref.  All you have to do is send a bad request
> (like 2 blank lines) and it will trigger the crash.
> 
> Please keep up the great work.
> 
> -- undercut


I've fixed this and checked the new code into the cvs repository.  The
fix required a small change in the way Filter::HTTPD handles errors.
Instead of crashing outright, it returns an HTTP::Response object
containing the error message.

I've documented a suggested use in the Filter::HTTPD manpage.  If
ref($request) is "HTTP::Response", just put it directly and return.
Otherwise the program has received a request and can parse it as
usual.

-- Rocco Caputo / [EMAIL PROTECTED] / poe.perl.org / poe.sourceforge.net

Reply via email to