]> Cypherpunks repositories - gostls13.git/commit
net/http: panic on duplicate registrations
authorRuss Cox <rsc@golang.org>
Wed, 8 Feb 2012 18:50:00 +0000 (13:50 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 8 Feb 2012 18:50:00 +0000 (13:50 -0500)
commitd0dc68901a9c175a36208bc84a1d9ab3451e2071
treeb25cbaf8c1582905bc69011aaae336d13974b78f
parent49110eaa2203bc59c754bc2534ba11f969e448f6
net/http: panic on duplicate registrations

Otherwise, the registration semantics are
init-order-dependent, which I was trying very hard
to avoid in the API.  This may break broken programs.

Fixes #2900.

R=golang-dev, r, bradfitz, dsymonds, balasanjay, kevlar
CC=golang-dev
https://golang.org/cl/5644051
doc/go1.html
doc/go1.tmpl
src/pkg/net/http/server.go