Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
another accepts example
  • Loading branch information
kraih committed Feb 4, 2014
1 parent d0cfc92 commit 5fd40d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Mojolicious/Plugin/DefaultHelpers.pm
Expand Up @@ -146,6 +146,10 @@ if no preference could be detected.
$self->render(data => '', status => 204)
unless my $format = $self->accepts('html', 'json');
# List requested representations
my $formats = join(', ', @{$self->accepts}) || 'everything';
$self->app->log->debug("User agent wants $fortmats.");
=head2 app
%= app->secrets->[0]
Expand Down

0 comments on commit 5fd40d7

Please sign in to comment.