go/src/net/http
Brad Fitzpatrick 18227bb7b6 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>
2015-12-17 20:21:44 +00:00
..
cgi net/http/cgi: optimize internal function removeLeadingDuplicates a bit 2015-10-15 14:42:11 +00:00
cookiejar
fcgi net/http/fcgi: fix panic with malformed params record 2015-09-27 06:57:03 +00:00
httptest net/http/httptest: don't crash in mime sniffing if HeaderMap is nil 2015-12-10 18:51:54 +00:00
httputil net/http/httputil: make DumpRequest use Request.RequestURI when available 2015-12-15 04:48:33 +00:00
internal net/http/internal: ignore chunk-extension when reading chunked encoding bodies 2015-11-10 08:17:58 +00:00
pprof runtime/trace: add new package 2015-07-22 15:47:16 +00:00
testdata
client.go net/http: be more consistent about Request.Method "" vs "GET" 2015-12-17 20:21:44 +00:00
client_test.go net/http: split Trailers tests into two halves 2015-12-16 20:25:46 +00:00
clientserver_test.go net/http: update bundled http2, add tests reading response Body after Close 2015-12-17 19:49:13 +00:00
cookie.go all: link to https instead of http 2015-07-11 14:36:33 +00:00
cookie_test.go net/http: harden, document func SetCookie and type Cookie 2015-06-30 16:19:02 +00:00
doc.go
example_test.go net/http: add example for setting trailers in an Handler 2015-07-20 00:40:40 +00:00
export_test.go net/http: fix Transport race returning bodyless responses and reusing conns 2015-12-16 17:50:32 +00:00
filetransport.go
filetransport_test.go
fs.go net/http: define File as an io.Seeker 2015-11-30 20:43:39 +00:00
fs_test.go net/http: run more tests in http2 mode 2015-12-10 04:43:08 +00:00
h2_bundle.go net/http: update bundled http2, add tests reading response Body after Close 2015-12-17 19:49:13 +00:00
header.go net/textproto: don't treat spaces as hyphens in header keys 2015-06-30 17:59:02 +00:00
header_test.go
http_test.go net/http: do not allow space or slash in Host headers 2015-07-15 03:15:59 +00:00
jar.go
lex.go net/http: handle "close" amongst multiple Connection tokens 2015-04-29 23:52:43 +00:00
lex_test.go net/http: handle "close" amongst multiple Connection tokens 2015-04-29 23:52:43 +00:00
main_test.go net/http: more HTTP/2 tests and fixes 2015-11-25 05:18:46 +00:00
method.go net/http: add method constants 2015-11-13 10:12:46 +00:00
npn_test.go net/http: fix Transport data race, double cancel panic, cancel error message 2015-04-20 20:34:43 +00:00
proxy_test.go net/http: fix test to check that requests to 'localhost' are not proxied 2015-02-10 03:01:30 +00:00
race.go
range_test.go
readrequest_test.go net/http: revert overly-strict part of earlier smuggling defense 2015-07-07 21:33:06 +00:00
request.go net/http: be more consistent about Request.Method "" vs "GET" 2015-12-17 20:21:44 +00:00
request_test.go net/url: reject space in host; do not escape < > " in host 2015-12-11 05:17:38 +00:00
requestwrite_test.go net/http: change default user agent string 2015-06-26 17:29:35 +00:00
response.go net/http: update Response.Trailer doc 2015-12-17 02:46:04 +00:00
response_test.go net/http: ignore Transfer-Encoding for HTTP/1.0 responses 2015-10-13 01:04:42 +00:00
responsewrite_test.go net/http: Don't set Content-Length: -1 when responding to a POST 2015-04-29 22:58:37 +00:00
serve_test.go net/http: make Server validate Host headers 2015-12-16 19:52:07 +00:00
server.go net/http: document a few ServeMux behaviors 2015-12-17 17:03:05 +00:00
sniff.go net/http: add/update mp4 sniffing 2015-11-17 18:00:15 +00:00
sniff_test.go net/http: run more tests in http2 mode 2015-12-10 04:43:08 +00:00
status.go net/http: export the "new" error codes from RFC 6585 2015-10-12 22:35:31 +00:00
transfer.go net/http: be more consistent about Request.Method "" vs "GET" 2015-12-17 20:21:44 +00:00
transfer_test.go
transport.go net/http: fix Transport race returning bodyless responses and reusing conns 2015-12-16 17:50:32 +00:00
transport_test.go net/http: fix Transport race returning bodyless responses and reusing conns 2015-12-16 17:50:32 +00:00
triv.go net/http: document that [ListenAnd]Serve always returns a non-nil error 2015-08-20 12:13:41 +00:00