[Dancer-users] possible bug with status()

David Precious davidp at preshweb.co.uk
Tue Mar 9 10:33:22 CET 2010


On Tuesday 09 March 2010 01:26:52 P Kishor wrote:
> at least while using Proxy,
>     status 'not_found'
> 
> returns the following header that the browser doesn't understand
> 
> HTTP/1.0 not_found Content-Type: text/html
> X-Powered-By: Perl Dancer 1.160
> 
> 
> Changing the code to return
>     status 404
> 
> fixes the problem.

You're absolutely correct - it would seem that the alias was being set 
directly into the Dancer::Response object, rather than being transformed into 
a usable status line via Dancer::HTTP::error().

I've committed a fix for this in 8187dc6, which should be in the next version 
of Dancer.

Thanks for the report!

-- 
David Precious <davidp at preshweb.co.uk>
http://blog.preshweb.co.uk/    www.preshweb.co.uk/twitter
www.preshweb.co.uk/linkedin    www.preshweb.co.uk/facebook
www.preshweb.co.uk/identica    www.lyricsbadger.co.uk

  "Programming is like sex. One mistake and you have to support 
  it for the rest of your life". (Michael Sinz)


More information about the Dancer-users mailing list