net/http/cgi: the SERVER_NAME variable in the CGI environment should not contain the port #53368
Labels
FrozenDueToAge
help wanted
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Executing a CGI in a subprocess using the
net/http/cgi.Handler
, passing a*http.Request
that contains a port in itsHost
.What did you expect to see?
The
SERVER_NAME
variable in the CGI environment should not contain the port, according to the section 4.1.14 of the RFC 3875.Such spec should be implemented by the
net/http/cgi
package, as stated in:go/src/net/http/cgi/host.go
Lines 8 to 9 in c29be2d
What did you see instead?
The
SERVER_NAME
env variable, initialized here:go/src/net/http/cgi/host.go
Line 141 in c29be2d
is initialized with
req.Host
, which may contain the port.The text was updated successfully, but these errors were encountered: