Skip to content

Commit

Permalink
Pass protocol to the Runner callback. Fixes #306
Browse files Browse the repository at this point in the history
  • Loading branch information
miyagawa committed Jul 5, 2012
1 parent 532925c commit 5e361d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/HTTP/Server/PSGI.pm
Expand Up @@ -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 {
Expand Down

0 comments on commit 5e361d3

Please sign in to comment.