]> Cypherpunks repositories - gostls13.git/commit
net/http: make ServeMux preserve query string during redirects
authorEmmanuel Odeke <emm.odeke@gmail.com>
Sun, 21 May 2017 00:19:54 +0000 (18:19 -0600)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 22 May 2017 14:49:43 +0000 (14:49 +0000)
commit6a6c792eef55eded7fb3165a330ec2b239b83960
tree13c423d47d61df9c41c65fae5689cab76c366d1d
parent5e797879350e749e49dc627d717ca069b6c833f3
net/http: make ServeMux preserve query string during redirects

Ensure that the implicitly created redirect
for
  "/route"
after
  "/route/"
has been registered doesn't lose the query string information.

Fixes #17841.

Change-Id: Ib7df9242fab8c9368a18fc0da678003d6bec63b8
Reviewed-on: https://go-review.googlesource.com/43779
Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/serve_test.go
src/net/http/server.go