Permalink
Browse files

Pass protocol to the Runner callback. Fixes #306

  • Loading branch information...
1 parent 532925c commit 5e361d3a8cc06cca6989a99ca46cf10b2a73baa8 @miyagawa miyagawa committed Jul 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/HTTP/Server/PSGI.pm
View
@@ -101,7 +101,7 @@ sub setup_listener {
$self->{listen_sock} ||= $class->new(%args)
or die "failed to listen to port $self->{port}: $!";
- $self->{server_ready}->($self);
+ $self->{server_ready}->({ %$self, proto => $self->{ssl} ? 'https' : 'http' });
}
sub accept_loop {

0 comments on commit 5e361d3

Please sign in to comment.