Skip to content

Commit

Permalink
parse headers a tiny bit faster
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Dec 17, 2014
1 parent 73e2515 commit 8eacd6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojo/Headers.pm
Expand Up @@ -90,7 +90,7 @@ sub parse {
my $line = $1;

# Check line size limit
if (length $line > $max) {
if ($+[0] > $max) {
@$self{qw(state limit)} = ('finished', 1);
return $self;
}
Expand Down

0 comments on commit 8eacd6b

Please sign in to comment.