[Dancer-users] Return after redirect
Alexis Sukrieh
sukria at sukria.net
Sat Apr 10 10:13:39 UTC 2010
Hello Juan,
Le vendredi 09 avril 2010 à 15:09 +0100, Juan J. Martínez a écrit :
> Eh, it's because of the empty body.
>
> redirect '/';
> return 'Redirecting...';
Well, actually you found a bug ;)
I've reproduce this bug in a new test script:
http://github.com/sukria/Dancer/blob/devel/t/03_route_handler/11_redirect_no_content.t
And fixed the bug in the devel branch.
http://github.com/sukria/Dancer/commit/de69197684606b5a867399fdc33c48b5ddc71360
A route can now return a void response (return;) and the content won't
be undefined.
Thanks for the report.
Regards,
--
Alexis Sukrieh
More information about the Dancer-users
mailing list