]> Cypherpunks repositories - gostls13.git/commit
net/http: fix inserting of implicit redirects in serve mux
authorChristian Himpel <chressie@googlemail.com>
Fri, 31 Aug 2012 16:00:01 +0000 (12:00 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 31 Aug 2012 16:00:01 +0000 (12:00 -0400)
commitdb7dbe32aa449d64194f811d532c9d3fcc5c3255
tree6c1e0f3e6e93ef13102b765b067ae9e37c1bced7
parentd073677569085642935d5d3b6acfe6df1054ae21
net/http: fix inserting of implicit redirects in serve mux

In serve mux, if pattern contains a host name, pass only the path to
the redirect handler.

Add tests for serve mux redirections.

R=rsc
CC=bradfitz, gobot, golang-dev
https://golang.org/cl/6329045
src/pkg/net/http/serve_test.go
src/pkg/net/http/server.go