Permalink
Browse files

Merge branch 'master' of github.com:miyagawa/Plack-Handler-AnyEvent-H…

…TTPD
  • Loading branch information...
2 parents 1ff206a + 6788e97 commit b8f6010470b0d3730c616d95c2981931e3051429 @miyagawa committed Aug 8, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/Plack/Handler/AnyEvent/HTTPD.pm
@@ -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);
}

0 comments on commit b8f6010

Please sign in to comment.