Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

SERVER_PORT can be mangled by bind hooks like Prefork

  • Loading branch information...
commit ddd19f69672f20e20614ef2b5eebb58b0c942604 1 parent 3145c45
@miyagawa authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Starman/Server.pm
View
2  lib/Starman/Server.pm
@@ -129,7 +129,7 @@ sub process_request {
REMOTE_ADDR => $self->{server}->{peeraddr},
REMOTE_HOST => $self->{server}->{peerhost} || $self->{server}->{peeraddr},
SERVER_NAME => $self->{server}->{sockaddr}, # XXX: needs to be resolved?
- SERVER_PORT => $self->{server}->{port}->[0],
+ SERVER_PORT => $self->{server}->{sockport},
SCRIPT_NAME => '',
'psgi.version' => [ 1, 1 ],
'psgi.errors' => *STDERR,
Please sign in to comment.
Something went wrong with that request. Please try again.