]> Cypherpunks.ru repositories - gostls13.git/commit
net/http/cgi: remove port from the CGI environment of variable SERVER_NAME
authorhopehook <hopehook.com@gmail.com>
Wed, 15 Jun 2022 19:02:38 +0000 (03:02 +0800)
committerGopher Robot <gobot@golang.org>
Wed, 10 Aug 2022 15:20:24 +0000 (15:20 +0000)
commit7ba458d7d8461835255b6353c773731f47c16215
treee5833efaa760575b832e05af286df571ffa11076
parentc81dfdd47aa44bb1da0f60e36742cc0103da4837
net/http/cgi: remove port from the CGI environment of variable SERVER_NAME

The SERVER_NAME variable in the CGI environment should not
contain the port, according to the section 4.1.14 of the
RFC 3875.

Fixes #53368.

Change-Id: Ifeea70206878cf83bc0bda35cb514d0226bbcd8c
Reviewed-on: https://go-review.googlesource.com/c/go/+/412434
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: xie cui <523516579@qq.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/net/http/cgi/host.go
src/net/http/cgi/host_test.go