Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix typo in example
  • Loading branch information
kraih committed Oct 27, 2015
1 parent 1ee8b10 commit e8a6479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojo/UserAgent.pm
Expand Up @@ -623,7 +623,7 @@ L<Mojo::UserAgent::Server> object.
# Mock web service
$ua->server->app->get('/time' => sub {
my $c = shift;
$c->render({now => time});
$c->render(json => {now => time});
});
my $time = $ua->get('/time')->res->json->{now};
Expand Down

0 comments on commit e8a6479

Please sign in to comment.