Skip to content

Commit

Permalink
Merge branch 'master' of github.com:miyagawa/Plack-Handler-AnyEvent-H…
Browse files Browse the repository at this point in the history
…TTPD
  • Loading branch information
miyagawa committed Aug 8, 2012
2 parents 1ff206a + 6788e97 commit b8f6010
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Plack/Handler/AnyEvent/HTTPD.pm
Expand Up @@ -169,7 +169,9 @@ use parent qw(AnyEvent::HTTPD::HTTPConnection);
sub handle_request {
my($self, $method, $uri, $hdr, $cont) = @_;

$self->{keep_alive} = ($hdr->{connection} =~ /keep-alive/io);
if( $hdr->{connection} ) {
$self->{keep_alive} = ($hdr->{connection} =~ /keep-alive/io);
}
$self->event(request => $method, $uri, $hdr, $cont);
}

Expand Down

0 comments on commit b8f6010

Please sign in to comment.