10 Apr
2010
10 Apr
'10
10:13 a.m.
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... And fixed the bug in the devel branch. http://github.com/sukria/Dancer/commit/de69197684606b5a867399fdc33c48b5ddc71... A route can now return a void response (return;) and the content won't be undefined. Thanks for the report. Regards, -- Alexis Sukrieh