golang/src/net/http
Cherry Mui 41aab30bd2 all: add push linknames to allow legacy pull linknames
CL 585358 adds restrictions to disallow pull-only linknames
(currently off by default). Currently, there are quite some pull-
only linknames in user code in the wild. In order not to break
those, we add push linknames to allow them to be pulled. This CL
includes linknames found in a large code corpus (thanks Matthew
Dempsky and Michael Pratt for the analysis!), that are not
currently linknamed.

Updates #67401.

Change-Id: I32f5fc0c7a6abbd7a11359a025cfa2bf458fe767
Reviewed-on: https://go-review.googlesource.com/c/go/+/586137
Reviewed-by: Russ Cox <rsc@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-05-17 16:48:00 +00:00
..
cgi all: remove redundant string conversions when formatting []byte with %s 2024-03-07 20:46:32 +00:00
cookiejar all: fix some typos in comments 2024-04-23 16:37:32 +00:00
fcgi net: add available godoc link 2024-01-10 03:29:50 +00:00
httptest net/http/httptest: add comment to Server.Client() about Server.URL 2024-05-10 17:26:10 +00:00
httptrace net: add available godoc link 2024-01-10 03:29:50 +00:00
httputil net/http/httputil: avoid ReverseProxy data race on 1xx response and error 2024-02-27 23:37:42 +00:00
internal net: add available godoc link 2024-01-10 03:29:50 +00:00
pprof net/http/pprof: avoid panic with user-defined "GET /" route 2024-02-27 17:34:05 +00:00
testdata net/http: test index exhaustively 2023-09-19 21:50:48 +00:00
alpn_test.go all: update references to symbols moved from io/ioutil to io 2020-10-20 18:41:18 +00:00
badlinkname.go all: add push linknames to allow legacy pull linknames 2024-05-17 16:48:00 +00:00
client.go net/http: panic early in do when Client is nil 2024-03-26 06:06:11 +00:00
client_test.go net/http: don't cancel Dials when requests are canceled 2024-04-17 21:11:57 +00:00
clientserver_test.go net/http: update HandlerWritesTooMuch test to allow different h1/h2 behavior 2024-04-08 20:33:30 +00:00
clone.go net/http: fix Transport panic with nil Request.Header 2019-10-14 17:53:36 +00:00
cookie.go net/http: add field Cookie.Quoted bool 2024-04-19 00:32:19 +00:00
cookie_test.go net/http: improve continue statements for tests 2024-04-25 01:02:12 +00:00
doc.go net: add available godoc link 2024-01-10 03:29:50 +00:00
example_filesystem_test.go all: update references to symbols moved from os to io/fs 2020-10-20 02:32:42 +00:00
example_handle_test.go
example_test.go net/http: make ExampleGet show StatusCode checks for non-1XX,2XX responses 2021-03-19 16:12:45 +00:00
export_test.go net/http: don't cancel Dials when requests are canceled 2024-04-17 21:11:57 +00:00
filetransport.go net: add available godoc link 2024-01-10 03:29:50 +00:00
filetransport_test.go net/http: add ServeFileFS, FileServerFS, NewFileTransportFS 2023-08-07 17:07:12 +00:00
fs.go net/http: remove misleading response headers on error 2024-05-09 17:06:47 +00:00
fs_test.go net/http, reflect: rename Test function names 2024-05-15 23:39:44 +00:00
h2_bundle.go all: update vendored golang.org/x/net 2024-04-08 20:51:17 +00:00
h2_error.go all: drop old +build lines 2023-10-19 23:33:27 +00:00
h2_error_test.go all: drop old +build lines 2023-10-19 23:33:27 +00:00
header.go net/http: use slices to simplify the code 2024-03-21 22:14:00 +00:00
header_test.go net/http: use strings.Builder 2022-09-07 01:07:32 +00:00
http.go net: add available godoc link 2024-01-10 03:29:50 +00:00
http_test.go net/http: use testenv.Command instead of exec.Command in tests 2023-08-22 18:18:19 +00:00
jar.go
main_test.go net/http: speed up go test 2024-04-03 22:49:46 +00:00
mapping.go net/http: mapping data structure 2023-09-12 17:47:07 +00:00
mapping_test.go net/http: mapping data structure 2023-09-12 17:47:07 +00:00
method.go
omithttp2.go net/http: in the IdleConnStrsForTesting_h2 helper, omit conns that cannot be reused 2023-03-22 20:51:27 +00:00
pattern.go net/http: allow multiple spaces between method and path in mux patterns 2024-02-26 16:36:30 +00:00
pattern_test.go net/http: allow multiple spaces between method and path in mux patterns 2024-02-26 16:36:30 +00:00
proxy_test.go net/http: remove badStringError, make some unexported structs non-comparable 2020-05-01 05:30:49 +00:00
range_test.go
readrequest_test.go net/http: reject requests with invalid Content-Length headers 2024-02-14 22:23:32 +00:00
request.go net/http: add Pattern field in Request to return matched pattern info 2024-05-16 18:42:34 +00:00
request_test.go net/http: add Pattern field in Request to return matched pattern info 2024-05-16 18:42:34 +00:00
requestwrite_test.go net/http: use strings.Builder 2022-09-07 01:07:32 +00:00
response.go net: add available godoc link 2024-01-10 03:29:50 +00:00
response_test.go net/http: close res.Body 2024-03-08 19:01:29 +00:00
responsecontroller.go net: add available godoc link 2024-01-10 03:29:50 +00:00
responsecontroller_test.go net/http: add ResponseController http2 request without body read deadline test 2024-03-06 19:20:31 +00:00
responsewrite_test.go net/http: use strings.Builder 2022-09-07 01:07:32 +00:00
roundtrip.go net: add available godoc link 2024-01-10 03:29:50 +00:00
roundtrip_js.go net: add available godoc link 2024-01-10 03:29:50 +00:00
routing_index.go net/http: index patterns for faster conflict detection 2023-09-19 18:35:22 +00:00
routing_index_test.go net/http: use slices to simplify the code 2024-03-21 22:14:00 +00:00
routing_tree.go net/http: represent multi wildcards properly 2024-04-30 15:43:24 +00:00
routing_tree_test.go net/http: represent multi wildcards properly 2024-04-30 15:43:24 +00:00
serve_test.go net/http: avoid panic when writing 100-continue after handler done 2024-05-14 22:34:15 +00:00
servemux121.go net/http: add comments that servemux121.go should remain frozen 2024-04-18 15:40:38 +00:00
server.go net/http: add Pattern field in Request to return matched pattern info 2024-05-16 18:42:34 +00:00
server_test.go net/http: refine trailing-slash redirect logic 2024-02-13 13:54:22 +00:00
sniff.go net/http: drop mimesniff for audio/basic 2022-04-20 21:51:06 +00:00
sniff_test.go net/http: refactor tests to run most in HTTP/1 and HTTP/2 modes 2022-10-07 16:53:14 +00:00
socks_bundle.go all: update vendored golang.org/x/net 2023-04-11 22:42:18 +00:00
status.go net/http: doc: update RFC reference for appropriate HTTP codes 2022-06-10 23:30:35 +00:00
transfer.go net/http: use slices to simplify the code 2024-03-21 22:14:00 +00:00
transfer_test.go net,os: arrange zero-copy of os.File and net.TCPConn to net.UnixConn 2023-11-17 23:16:28 +00:00
transport.go net/http: return correct error when reading from a canceled request body 2024-05-17 15:58:58 +00:00
transport_default_other.go net/http, net/internal, net/smtp: add wasip1 2023-04-11 20:54:10 +00:00
transport_default_wasm.go net/http, net/internal, net/smtp: add wasip1 2023-04-11 20:54:10 +00:00
transport_dial_test.go net/http: don't cancel Dials when requests are canceled 2024-04-17 21:11:57 +00:00
transport_internal_test.go net/http: simplify HTTP/1 request cancelation 2024-05-16 15:57:17 +00:00
transport_test.go net/http: return correct error when reading from a canceled request body 2024-05-17 15:58:58 +00:00
triv.go net: add available godoc link 2024-01-10 03:29:50 +00:00