Skip to content

Commit

Permalink
changed route in example from get to post
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 3, 2014
1 parent f78355d commit 9610d20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojolicious/Lite.pm
Expand Up @@ -225,7 +225,7 @@ full access to all HTTP features and information.
};
# Echo the request body and send custom header with response
get '/echo' => sub {
post '/echo' => sub {
my $self = shift;
$self->res->headers->header('X-Bender' => 'Bite my shiny metal ass!');
$self->render(data => $self->req->body);
Expand Down

0 comments on commit 9610d20

Please sign in to comment.