Skip to content

Commit

Permalink
fixed a few typos
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jul 9, 2014
1 parent 5c2daad commit 1d31c5b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/Mojo/Content.pm
Expand Up @@ -515,7 +515,7 @@ Check if content is chunked.
my $bool = $content->is_compressed;
Check if content is C<gzip> compressed.
Check if content is gzip compressed.
=head2 is_dynamic
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -977,7 +977,7 @@ L<Mojo::UserAgent> makes it actually easy.
$tx = $ua->start($tx);

The event L<Mojo::Content/"read"> will be emitted for every chunk of data that
is received, even C<chunked> encoding and C<gzip> compression will be handled
is received, even C<chunked> encoding and gzip compression will be handled
transparently if necessary.

=head2 Streaming request
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojolicious/Guides/Rendering.pod
Expand Up @@ -1054,11 +1054,11 @@ lot more efficient to use L<Mojolicious/"after_render">.
# Check if "gzip => 1" has been set in the stash
return unless $c->stash->{gzip};

# Check if user agent accepts GZip compression
# Check if user agent accepts gzip compression
return unless ($c->req->headers->accept_encoding // '') =~ /gzip/i;
$c->res->headers->append(Vary => 'Accept-Encoding');

# Compress content with GZip
# Compress content with gzip
$c->res->headers->content_encoding('gzip');
gzip $output, \my $compressed;
$$output = $compressed;
Expand Down

0 comments on commit 1d31c5b

Please sign in to comment.