]> Cypherpunks.ru repositories - gostls13.git/commit
net/http/cgi: set SERVER_PORT to 443 when req.TLS != nil
authoredef <edef@edef.eu>
Sat, 3 Dec 2022 00:09:22 +0000 (00:09 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 4 Oct 2023 16:50:58 +0000 (16:50 +0000)
commit3a69dcdc9f487f79fdce82536c97b49ba7f216c7
treefdaa2e96b28e0565260d6bc4fedd35b7e4a4bc17
parent68a12a80235fae67dc64fa2d232186a2e85c05f5
net/http/cgi: set SERVER_PORT to 443 when req.TLS != nil

A hostname without a port leaves the port implied by the protocol.
For HTTPS, the implied port is 443, not 80.

Change-Id: I873a076068f84c8041abf10a435d9499635730a0
Reviewed-on: https://go-review.googlesource.com/c/go/+/454975
Auto-Submit: Damien Neil <dneil@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/net/http/cgi/host.go