Skip to content

Commit

Permalink
just stop parsing on errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Dec 16, 2014
1 parent dee50a7 commit 6c95141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojo/Message.pm
Expand Up @@ -146,7 +146,7 @@ sub json {
sub parse {
my $self = shift;

return $self if $self->{limit};
return $self if $self->{error};
$self->{raw_size} += length(my $chunk = shift // '');
$self->{buffer} .= $chunk;

Expand Down

0 comments on commit 6c95141

Please sign in to comment.