# Don't set content_type
# Don't set body
$c->res->redirect('/go_here');
+ # route for /go_here doesn't exist
+ # it is only for checking HTTP response code, content-type etc.
}
sub test_redirect_uri_for :Global {
# Don't set content_type
# Don't set body
$c->res->redirect($c->uri_for('/go_here'));
+ # route for /go_here doesn't exist
+ # it is only for checking HTTP response code, content-type etc.
}
sub test_redirect_with_contenttype :Global {
# set content_type but don't set body
$c->res->content_type('image/jpeg');
$c->res->redirect('/go_here');
+ # route for /go_here doesn't exist
+ # it is only for checking HTTP response code, content-type etc.
}
sub test_redirect_with_content :Global {
$c->res->content_type('text/plain');
$c->res->body('Please kind sir, I beg you to go to /go_here.');
$c->res->redirect('/go_here');
+ # route for /go_here doesn't exist
+ # it is only for checking HTTP response code, content-type etc.
}
sub end : Private {