[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:

And fixed the bug in the devel branch.

A route can now return a void response (return;) and the content won't
be undefined.

Thanks for the report.


Alexis Sukrieh

More information about the Dancer-users mailing list