go/src/net/http
Brad Fitzpatrick 88fc3587ec net/http: don't reuse conns after incomplete 100-continue requests
If we receive an HTTP request with "Expect: 100-continue" and the
Handler never read to EOF, the conn is in an unknown state.
Don't reuse that connection.

Fixes #11549

Change-Id: I5be93e7a54e899d615b05f72bdcf12b25304bc60
Reviewed-on: https://go-review.googlesource.com/12262
Reviewed-by: Andrew Gerrand <adg@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
2015-07-15 23:06:23 +00:00
..
cgi all: extract "can I exec?" check from tests into internal/testenv 2015-06-16 18:07:36 +00:00
cookiejar
fcgi net/http/fcgi: fix race between serveRequest and cleanUp 2015-07-11 14:36:16 +00:00
httptest net/http/httptest: increase test Server's key size 2015-06-29 19:30:48 +00:00
httputil all: link to https instead of http 2015-07-11 14:36:33 +00:00
internal net/http: flush request body chunks in Transport 2015-05-14 00:29:24 +00:00
pprof all: link to https for golang subdomains too 2015-07-12 04:42:40 +00:00
testdata
client.go all: link to https instead of http 2015-07-11 14:36:33 +00:00
client_test.go all: link to https instead of http 2015-07-11 14:36:33 +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
export_test.go net/http: fix scheduling race resulting in flaky test 2015-05-01 21:41:03 +00:00
filetransport.go
filetransport_test.go
fs.go net/http: document ServeFile and FileServer index.html redirect behavior 2015-04-30 20:42:58 +00:00
fs_test.go net/http: make ServeContent errors return more specific HTTP status codes 2015-04-22 10:35:44 +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: fix Transport data race, double cancel panic, cancel error message 2015-04-20 20:34:43 +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: do not allow space or slash in Host headers 2015-07-15 03:15:59 +00:00
request_test.go net/http: do not allow space or slash in Host headers 2015-07-15 03:15:59 +00:00
requestwrite_test.go net/http: change default user agent string 2015-06-26 17:29:35 +00:00
response.go net/http: add comment to exported ErrNoCookie and ErrNoLocation values 2015-06-26 17:28:07 +00:00
response_test.go net/http: handle "close" amongst multiple Connection tokens 2015-04-29 23:52:43 +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: don't reuse conns after incomplete 100-continue requests 2015-07-15 23:06:23 +00:00
server.go net/http: don't reuse conns after incomplete 100-continue requests 2015-07-15 23:06:23 +00:00
sniff.go net/http: avoid some allocations in DetectContentType 2014-12-09 02:00:09 +00:00
sniff_test.go
status.go
transfer.go net/http: revert overly-strict part of earlier smuggling defense 2015-07-07 21:33:06 +00:00
transfer_test.go
transport.go all: link to https instead of http 2015-07-11 14:36:33 +00:00
transport_test.go all: link to https instead of http 2015-07-11 14:36:33 +00:00
triv.go