]> Cypherpunks repositories - gostls13.git/commit
net/http: strip port from host in mux Handler
authorKenny Grant <kennygrant@gmail.com>
Wed, 15 Mar 2017 21:55:04 +0000 (21:55 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 24 Mar 2017 19:10:33 +0000 (19:10 +0000)
commitf1e880386b668a26dd6b7afdea43c9041a917fa5
tree478f4ffb051dd6e06f68972f7020dcff1fbe90c9
parent369d1083a74b6a965a33510489ab381d937812ae
net/http: strip port from host in mux Handler

This change strips the port in mux.Handler before attempting to
match handlers and adds a test for a request with port.

CONNECT requests continue to use the original path and port.

Fixes #10463

Change-Id: Iff3a2ca2b7f1d884eca05a7262ad6b7dffbcc30f
Reviewed-on: https://go-review.googlesource.com/38194
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/net/http/serve_test.go
src/net/http/server.go