]> Cypherpunks repositories - gostls13.git/commit
net/http: be more consistent about Request.Method "" vs "GET"
authorBrad Fitzpatrick <bradfitz@golang.org>
Thu, 17 Dec 2015 19:36:43 +0000 (19:36 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 17 Dec 2015 20:21:44 +0000 (20:21 +0000)
commit18227bb7b6ce14c2736543777f1d5cebeff11abd
tree6d3444eb85c0612b0324d3b6a535e16d3382f8cb
parent761ac75a948e14fcd8472684effedf75f3fc316e
net/http: be more consistent about Request.Method "" vs "GET"

Patch from Russ.

No bug identified, but I didn't search exhaustively. The new code is
easier to read.

Fixes #13621

Change-Id: Ifda936e4101116fa254ead950b5fe06adb14e977
Reviewed-on: https://go-review.googlesource.com/17981
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/net/http/client.go
src/net/http/request.go
src/net/http/transfer.go