]> Cypherpunks repositories - gostls13.git/commit
net/http: don't modify Request Method's case
authorBrad Fitzpatrick <bradfitz@golang.org>
Mon, 30 Jul 2012 00:05:24 +0000 (10:05 +1000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 30 Jul 2012 00:05:24 +0000 (10:05 +1000)
commitf8c6514a1cb11034e96588ddfafdbbba5b0cf27b
tree24aa4bea3edc47ad472c30100f79bcf5df925916
parent7aa60d998a5f81f58a09e6b1e5703becaf486043
net/http: don't modify Request Method's case

This fixes a data race (usually just harmlessly updating
"GET" to "GET"), but also follows RFC 2616 Sec 5.1.1 which
says that the request method is case-sensitive.

Fixes #3881

R=golang-dev, rsc, dsymonds
CC=golang-dev
https://golang.org/cl/6446063
src/pkg/net/http/response.go
src/pkg/net/http/serve_test.go