Skip to content

Commit

Permalink
fixed typo in example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 29, 2014
1 parent b279513 commit ea988d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Mojolicious/Plugin/DefaultHelpers.pm
Expand Up @@ -385,9 +385,9 @@ C<Range>, C<If-Modified-Since> and C<If-None-Match> headers.
$c->reply->asset($asset);
# Serve static file if it exists
if (my $asset = $c->app->static->file('/foo/index.html')) {
$c->res->headers->content_type('text/html');
$c->reply->static($asset);
if (my $asset = $c->app->static->file('images/logo.png')) {
$c->res->headers->content_type('image/png');
$c->reply->asset($asset);
}
=head2 reply->exception
Expand Down

0 comments on commit ea988d6

Please sign in to comment.