$c->res->body('');
}
-sub localregex : LocalRegex('^localregex$') {
- my ( $self, $c ) = @_;
- $c->res->header( 'X-Test-Class' => ref($self) );
- $c->response->content_type('text/plain; charset=utf-8');
- $c->forward('TestApp::View::Dump::Request');
-}
-
sub index : Private {
my ( $self, $c ) = @_;
$c->res->body('root index');
$c->res->redirect('/go_here');
}
+sub test_redirect_uri_for :Global {
+ my ($self, $c) = @_;
+ # Don't set content_type
+ # Don't set body
+ $c->res->redirect($c->uri_for('/go_here'));
+}
+
sub test_redirect_with_contenttype :Global {
my ($self, $c) = @_;
# set content_type but don't set body