Subject: | url() should use virtual_port(), not server_port() |
Right now, url() does this:
my $port = $self->server_port;
$url .= ":" . $port
unless (lc($protocol) eq 'http' && $port == 80)
|| (lc($protocol) eq 'https' && $port == 443);
However, in an environment where the CGI application is behind a proxy
that is doing some sort of port translation (for example, the frontend
handles SSL, so traffic comes in on 443, and the backend is in HTTP, so
traffic is on some other port, like 81) this isn't the right
behavior--the url comes out with all the information of the front-end
proxy but the back-end port number.