Skip to content

Commit

Permalink
mention that the content negotiation result gets stored in the format…
Browse files Browse the repository at this point in the history
… stash value
  • Loading branch information
kraih committed Sep 1, 2013
1 parent c13c7d6 commit 53c1fc7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Changes
@@ -1,4 +1,6 @@

4.31 2013-09-02

4.30 2013-09-01
- Fixed memory leak in Mojolicious::Routes.

Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious.pm
Expand Up @@ -41,7 +41,7 @@ has static => sub { Mojolicious::Static->new };
has types => sub { Mojolicious::Types->new };

our $CODENAME = 'Top Hat';
our $VERSION = '4.30';
our $VERSION = '4.31';

sub AUTOLOAD {
my $self = shift;
Expand Down
5 changes: 3 additions & 2 deletions lib/Mojolicious/Guides/Rendering.pod
Expand Up @@ -316,8 +316,9 @@ L<Mojolicious::Controller/"render">.

The best possible representation will be automatically selected from the
C<Accept> request header, C<format> stash value or C<format> GET/POST
parameter. To change MIME type mappings for the C<Accept> request header you
can use L<Mojolicious/"types">.
parameter and stored in the C<format> stash value. To change MIME type
mappings for the C<Accept> request header or the C<Content-Type> response
header you can use L<Mojolicious/"types">.

$self->respond_to(
json => {json => {hello => 'world'}},
Expand Down

0 comments on commit 53c1fc7

Please sign in to comment.