Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
more diverse redirect_to tests
  • Loading branch information
kraih committed Jun 2, 2013
1 parent d7445d7 commit bb1c32f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Mojolicious/Controller.pm
Expand Up @@ -627,8 +627,8 @@ For more control you can also access request information directly.
=head2 redirect_to
$c = $c->redirect_to('named');
$c = $c->redirect_to('named', foo => 'bar');
$c = $c->redirect_to('named', {foo => 'bar'});
$c = $c->redirect_to('/path');
$c = $c->redirect_to('http://127.0.0.1/foo/bar');
Expand Down
2 changes: 1 addition & 1 deletion t/mojolicious/lite_app.t
Expand Up @@ -359,7 +359,7 @@ get '/redirect_named' => sub {
};

get '/redirect_no_render' => sub {
shift->redirect_to('index', format => 'txt');
shift->redirect_to('index', {format => 'txt'});
};

get '/redirect_callback' => sub {
Expand Down

0 comments on commit bb1c32f

Please sign in to comment.