Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…TTPD
  • Loading branch information...
commit b8f6010470b0d3730c616d95c2981931e3051429 2 parents 1ff206a + 6788e97
@miyagawa authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/Plack/Handler/AnyEvent/HTTPD.pm
View
4 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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.