Skip to content

Commit

Permalink
small optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 3, 2012
1 parent fd9f0db commit 33d47b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

3.37 2012-09-02
3.37 2012-09-03
- Updated jQuery to version 1.8.1.
- Improved documentation.
- Improved tests.
Expand Down
5 changes: 1 addition & 4 deletions lib/Mojo/Content.pm
Expand Up @@ -95,10 +95,7 @@ sub parse {
$self->_body;

# No content
if ($self->skip_body) {
$self->{state} = 'finished';
return $self;
}
return $self->tap(sub { $_->{state} = 'finished' }) if $self->skip_body;

# Relaxed parsing
my $headers = $self->headers;
Expand Down

0 comments on commit 33d47b6

Please sign in to comment.