Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/ooni/oohttp

Fork of Go stdlib's net/http that works with alternative TLS libraries like refraction-networking/utls.
https://github.com/ooni/oohttp

net/http: using errors.Is in fs error detection

Compare error by errors.Is to detect wrapped fs errors.

Fixes #44923

Change-Id: Idf32b96a66172...

ab4ab8bd09d22558183e6637277b946799859b21 authored over 3 years ago by Peng Gao <[email protected]>
net/http: add to deadlines only when positive

The existing implementation allows read / write deadlines to exist
in the past. This updates con...

ca730a5ffb567bd3664ae11cdb5311e915dac73b authored over 3 years ago by Joshua Harshman <[email protected]>
net/http: allow multiple dials in TestTransportMaxConnsPerHost

If there is more than the expected single dial, the channel will block.
Allow at least one conne...

322e7247e9d0045b6f0dd78c50c9f5282c65c1a2 authored over 3 years ago by Michael Fraenkel <[email protected]>
net/http/httptest: panic on non-3 digit (XXX) status code in Recorder.WriteHeader

This change conforms Recorder with net/http servers, to panic
when a handler writes a non-3 digi...

39b9bd48ccf32e89a332353fbf26e4692ee1d493 authored over 3 years ago by ian woolf <[email protected]>
all: fix spellings

This follows the spelling choices that the Go project has made for English words.
https://github...

6b866dc324f4b08e1e3cf43ee567e2ddea881d53 authored over 3 years ago by Naman Gera <[email protected]>
net/http: replace os.MkdirTemp with T.TempDir

Updates: #45402
Change-Id: Ia61f422d058bf57fc3688abc25597d6cc1692c51
Reviewed-on: https://go-rev...

393237b40890d007b6df3423b60942b2dffa4685 authored over 3 years ago by ianwoolf <[email protected]>
all: update references to symbols moved from io/ioutil to io

Update references missed in CL 263142.

For #41190

Change-Id: I778760a6a69bd0440fec0848bdef539c...

7c528aae76df6d61de2688c5c2a84475a49ad940 authored over 3 years ago by KimMachineGun <[email protected]>
net/http: use consistent case in URL in names

Change-Id: Iff5074713e1a4484c04b8628fb2611b6d4e154c7
GitHub-Last-Rev: bb0861bbbe31bc2bbda667c054...

ec7157f64c8c54f3dce6b5df1ef46e65aaabde84 authored over 3 years ago by 徐志伟 <[email protected]>
net/http/httptest: wait for user ConnState hooks

Ensure that user ConnState callbacks have completed before returning
from (*httptest.Server).Clo...

79109510e793a492311d4a28422c8503e064afc1 authored over 3 years ago by Damien Neil <[email protected]>
net/http: fix request cancellation race

When a in-flight request is cancelled, (*Transport).cancelRequest is
called. The cancelRequest f...

ffba9948120cdf09fe63f66d8f397dc305b5fb71 authored over 3 years ago by Damien Neil <[email protected]>
net/http: treat MaxBytesReader's negative limits as equivalent to zero limit

Current MaxBytesReader behaviour differs from its documentation. It's
not similar enough to io.L...

1aa861d73695c050984205cdaf9405e949c64474 authored over 3 years ago by Artur M. Wolff <[email protected]>
net/http: make ExampleGet show StatusCode checks for non-1XX,2XX responses

Updates ExampleGet to show how to handle bad responses with non-1XX,2XX
status codes. Given that...

9a532212adb8628db9c5b45155799a1f15380078 authored over 3 years ago by Emmanuel T Odeke <[email protected]>
net/http: mention NewRequestWithContext+Client.Do for custom contexts

Adds mentions of NewRequestWithContext and *Client.Do as prescriptions
for how to use a specifie...

da7fc4668e09a844d53b0edb2210994743e284c2 authored over 3 years ago by Emmanuel T Odeke <[email protected]>
crypto/tls: add HandshakeContext method to Conn

Adds the (*tls.Conn).HandshakeContext method. This allows
us to pass the context provided down t...

e73afb1384ea4f1e30c6ccf557b94f8c5cdb58cb authored over 3 years ago by Johan Brandhorst <[email protected]>
all: update golang.org/x/* dependencies

Updates src/ and src/cmd/* dependencies, using

go mod vendor

as well as

updatestd -br...

d0dd81bb22ce07fe356e879211e1f9bdcf07de38 authored over 3 years ago by Emmanuel T Odeke <[email protected]>
net/http: revert change from CL 299109 breaking TestAllDependencies

This code is generated from golang.org/x/net/http2 and thus any changes
first have to occur ther...

3022a9d133bafa0e2f43c138b5665dbf84884949 authored over 3 years ago by Tobias Klauser <[email protected]>
all: remove duplicate words

Change-Id: Ib0469232a2b69a869e58d5d24990ad74ac96ea56
GitHub-Last-Rev: eb38e049ee1e773392ff3747e1...

674a298d00d16d67c92861238197580ed5c0efbe authored over 3 years ago by John Bampton <[email protected]>
net/http: note that "HTTP/2" is invalid for ParseHTTPVersion

Change-Id: Ieba05dea892ec9855a63b80e456bcf9188eef855
GitHub-Last-Rev: 5f7663ac4aaecb01a27a043092...

fc2a63bd0b1f97866c28e1953b264a43577bf55c authored over 3 years ago by Josh Deprez <[email protected]>
all: use HTML5 br tags

In HTML5 br tags don't need a closing slash

Change-Id: Ic53c43faee08c5b1267daa9a02cc186b1c255ca...

169aadee8f24e6f0ed0c09928294a07473ce22b9 authored over 3 years ago by John Bampton <[email protected]>
net/http: revert change to generated file from CL 296152

This file is generated, so the fix needs to happen upstream.
The file can then be regenerated us...

3a0d500cf0f29e7e548509bff9e7a4d0da53d2ca authored over 3 years ago by Bryan C. Mills <[email protected]>
docs: clarify when APIs use context.Background.

The Go standard library retrofitted context support onto existing APIs
using context.Background ...

3efcc20a8542bd4b98992f8adec0f969e3ded3cf authored over 3 years ago by Matt T. Proud <[email protected]>
net/http/httptrace: fix doc typo

Change-Id: I919d9c3968c0fcd33774e714f22182504790bd01
Reviewed-on: https://go-review.googlesource...

dc5282405b872e799a930fe15b38586df764bf99 authored over 3 years ago by Rodolfo Carvalho <[email protected]>
all: go fmt std cmd (but revert vendor)

Make all our package sources use Go 1.17 gofmt format
(adding //go:build lines).

Part of //go:b...

7832553021d1b4a6187fefe855cad7422b18668a authored over 3 years ago by Russ Cox <[email protected]>
net/http/fcgi: remove locking added to prevent a test-only race

The race reported in issue #41167 was detected only because the
ReadWriter used in test code hap...

1458d2393eaf2c152b9dbd585a6940ef40cd74ed authored almost 4 years ago by Hilko Bengen <[email protected]>
net/http: fix flaky TestDisableKeepAliveUpgrade

This test hijacks a connection. It was reading from the net.Conn
returned by Hijack, not the buf...

23d170ac7997bbe3625a2d251d405564fef2201e authored almost 4 years ago by Damien Neil <[email protected]>
net/http/httputil: fix deadlock in DumpRequestOut

Fix a deadlock in DumpRequestOut which can occur if the request is
cancelled between response be...

890cbbf5a5b63aef56c332366afd430a3ad33188 authored almost 4 years ago by Steven Hartland <[email protected]>
crypto/tls: revert "add HandshakeContext method to Conn"

This reverts CL 246338.

Reason for revert: waiting for 1.17 release cycle

Updates #32406

Chan...

a4d566c11100c28649c9c8c6a13999e002496007 authored almost 4 years ago by Johan Brandhorst <[email protected]>
net/http/pprof: don't treat os.Args as format string in Cmdline handler

Found by @josharian running staticcheck against a fork of this code
elsewhere.

Change-Id: Ica8b...

668850d4c943f72c71346ac9a3b4aa7c30ef6d16 authored almost 4 years ago by Brad Fitzpatrick <[email protected]>
net/http: attempt deadlock fix in TestDisableKeepAliveUpgrade

1. The test now checks the response status code.
2. The transport has been changed to not set "C...

66ede767bfb3a1f9dabdf12bfb4a7405d5d37282 authored almost 4 years ago by Anmol Sethi <[email protected]>
std: update golang.org/x/net to 20201209123823-ac852fbbde11

Done with:

go get -d golang.org/x/net@latest
go mod tidy
go mod vendor
go generate -run bun...

96b36f9b8dd9850fd21db63d424a5d0d8a9bb023 authored almost 4 years ago by Dmitri Shuralyov <[email protected]>
all: update to use os.ReadFile, os.WriteFile, os.CreateTemp, os.MkdirTemp

As part of #42026, these helpers from io/ioutil were moved to os.
(ioutil.TempFile and TempDir b...

2c5eecb83f0419d17ebc0e182af3c897b7f32f05 authored almost 4 years ago by Russ Cox <[email protected]>
net/http: add connections back that haven't been canceled

Issue #41600 fixed the issue when a second request canceled a connection
while the first request...

fdcda93f562500162674aee216c429d15e270ef9 authored almost 4 years ago by Michael Fraenkel <[email protected]>
mime/multipart: handle ReadForm(math.MaxInt64) better

Returning an error about integer overflow is needlessly pedantic.
The meaning of ReadForm(MaxInt...

2aeafa0f26b94048c0a963331d20da1635b9dfa7 authored almost 4 years ago by Russ Cox <[email protected]>
net/http: allow upgrading non keepalive connections

If one was using http.Transport with DisableKeepAlives and trying
to upgrade a connection agains...

1519b2f22dbae044d10e4749bd44b85012428b28 authored almost 4 years ago by Anmol Sethi <[email protected]>
net/http: ignore connection closes once done with the connection

Once the connection is put back into the idle pool, the request should
not take any action if th...

c313d0a428f6072b32ab336d398ed8c170de5976 authored almost 4 years ago by Michael Fraenkel <[email protected]>
all: update vendored dependencies for Go 1.16 release

The Go 1.16 code freeze has recently started. This is a time to update
all golang.org/x/... modu...

9917d984e48ee5b6dcf66097e5e8563095d752e3 authored almost 4 years ago by Dmitri Shuralyov <[email protected]>
crypto/tls: add HandshakeContext method to Conn

Adds the (*tls.Conn).HandshakeContext method. This allows
us to pass the context provided down t...

e2792fb397083c3231ff8117f14b33d7a71dc39c authored almost 4 years ago by Johan Brandhorst <[email protected]>
net/http: use exponential backoff for polling in Server.Shutdown

Instead of always polling 500ms, start with an interval of 1ms and
exponentially back off to at ...

e4f31b8476cfcc591c2fddd618629361842b347b authored about 4 years ago by Dan Peterson <[email protected]>
net/http: fix typo in TestTransportReadToEndReusesConn

The test sets a Content-Type where it looks like it wants a Content-Length. The test passes beca...

4de549e6c9007287493330a11a28c2e19a07cc3c authored about 4 years ago by Keiichi Hirobe <[email protected]>
net/http: test that ParseMultipartForm catches overflows

Tests that if the combination of:
* HTTP multipart file payload size
* ParseMultipartForm's maxM...

8d4921ba6fa33cbba163db49335a5458148c6604 authored about 4 years ago by Emmanuel T Odeke <[email protected]>
all: update references to symbols moved from io/ioutil to io

The old ioutil references are still valid, but update our code
to reflect best practices and get...

88d4ee20275529f8fd101ab71cfcec62b79c41ab authored about 4 years ago by Russ Cox <[email protected]>
net/http: add FS to convert fs.FS to FileSystem

Two different functions in the http API expect a FileSystem:
http.FileSystem and http.NewFileTra...

65e1ae0a32cebabfd96b0ef86aadaafdc13a1566 authored about 4 years ago by Russ Cox <[email protected]>
net/http/cgi: preserve env vars on illumos

Preserve the same environment variables as on solaris.

Spotted while reviewing CL 263577.

Chan...

ac5c28fa6ceaa59bcfc99acc66802f7a5188f2ef authored about 4 years ago by Tobias Klauser <[email protected]>
net/http/cgi: preserve LD_LIBRARY_PATH on NetBSD, too

This makes the behavior of the cgi package on NetBSD consistent with its
behavior on the other B...

8b82ef74400f9028da82cd3d7aa91a7e165df746 authored about 4 years ago by Nikhil Benesch <[email protected]>
all: update references to symbols moved from os to io/fs

The old os references are still valid, but update our code
to reflect best practices and get use...

8353f03a019c6cc625eda95ecb379d7b8b6725b1 authored about 4 years ago by Russ Cox <[email protected]>
Revert "net/http: test that ParseMultipartForm returns an error for int overflow"

This reverts CL 254977.

Reason for revert: introduced test failures on longtest builders.

Chan...

8e87faad4e865366e70b53e676210360bf83cb57 authored about 4 years ago by Bryan C. Mills <[email protected]>
net/http: test that ParseMultipartForm returns an error for int overflow

ParseMultipartForm has been changed to return an error if maxMemory
parameter + 10MB causes int ...

0479782e04cdf2600f2b73e3f1130b4a501181ef authored about 4 years ago by avivklas <[email protected]>
net/http/httputil: copy response header back to http.ResponseWriter in ReverseProxy.handleUpgradeResponse

Fixes: #41634

Change-Id: Ib78cc37a4d2ca0753d567eafb616238e4103484e
Reviewed-on: https://go-revi...

08070af54fa009b356f8906f79f1d9ac4e32a00c authored about 4 years ago by Aofei Sheng <[email protected]>
net/http: try to deflake TestTransportDiscardsUnneededConns

Fixes #33585.
Fixes #36797.

Change-Id: I9202b624642368089a9ce827e3e7a7427100bf4f
Reviewed-on: h...

de2cb72416a16708770c50a5a9de8aa9093e4ca5 authored about 4 years ago by Russ Cox <[email protected]>
net/http: ensure Request.Body.Close is called once and only once

Makes *Request.write always close the body, so that callers no longer
have to close the body on ...

97a4dec1aed8229d67ee0ca52e5ba953bb66ca39 authored about 4 years ago by Ross Light <[email protected]>
net/http: document concurrency expectations for Request.Body

This is primarily aimed at client requests where the user can supply
their own io.ReadCloser, bu...

095022240489313290e2ad5a65d46e48be591f3a authored about 4 years ago by Ross Light <[email protected]>
net/http: deflake TestServerEmptyBodyRace_h1, or at least try

Fixes #22540.
For #33585.

Change-Id: I504b5a91ce1a39cd4ffd2380178a1b8f82f49dd3
Reviewed-on: htt...

c89afb72c245a51428d958d836cf7ef20d521146 authored about 4 years ago by Russ Cox <[email protected]>
net/http: remove DualStack in DefaultTransport

Removing `DualStack` from `http.DefaultTransport` since it is deprecated
https://github.com/gola...

11782eaf3c0111bb29eedbeca52c6a122820f0f1 authored about 4 years ago by ananya saxena <[email protected]>
net/http: return 505 status for rejected protocol version

When rejecting a request with an unsupported HTTP protocol version,
return a 505 error ("HTTP Ve...

f3e4144cc9ba4363c0f6d06a1d971c41b49e7b4b authored about 4 years ago by Damien Neil <[email protected]>
net/http/httputil: flush ReverseProxy immediately if Content-Length is -1

Finish up a prior TODO by making ReverseProxy flush immediately
if Content-Length is -1, which i...

7661140917070e49b03bb68b82d400658bde3259 authored about 4 years ago by Ignacio Hagopian <[email protected]>
net/http: deflake TestTransportPersistConnLeak on macOS

On a loaded system, sometimes connections don't work out.
Ignore those in TestTransportPersistCo...

7f226168bb0f1a859e9d226420516dab9a001ff0 authored about 4 years ago by Russ Cox <[email protected]>
net/http: deep copy Request.TransferEncoding

The existing implementation in Request.Clone() assigns the wrong
pointer to r2.TransferEncoding....

ab772a1c470a60fd8341de747c72d9f4a9d76a62 authored about 4 years ago by dqu123 <[email protected]>
net/http/pprof: remove html/template dependency

html/template indirectly uses reflect MethodByName, this causes linker
to use conservative mode ...

ee5becb36c6aa2bb5a40025ae32a246c5c1c0df8 authored about 4 years ago by Egon Elbre <[email protected]>
net/http: make SameSiteDefaultMode behavior match the specification

The current specification does not foresee a SameSite attribute without
a value. While the exist...

5162f8a4483af8b2dca54419f27f7eb435de9771 authored about 4 years ago by Roberto Clapis <[email protected]>
net/http/pprof: use Request.Context, not the deprecated CloseNotifier

Prior to this commit, the profiling code had a sleep() function that
waits and unblocks on eithe...

0df779000e277a56b3ac4627822342b77d896b9a authored about 4 years ago by Ayan George <[email protected]>
net/http: add Transport.GetProxyConnectHeader

Fixes golang/go#41048

Change-Id: I38e01605bffb6f85100c098051b0c416dd77f261
Reviewed-on: https:/...

ccf3a94274bf2c8bfb08fb73afa7395066f7c164 authored about 4 years ago by Brad Fitzpatrick <[email protected]>
src/go.mod, net/http: update bundled and latest golang.org/x/net

Updates x/net/http2 to git rev 5d4f7005572804eaf7f5ecdd2473a62557f733ba

http2: send WINDOW_...

d3c5651ea5f8cb0956eabe55bd2c4e0559e064bd authored about 4 years ago by Emmanuel T Odeke <[email protected]>
all: add GOOS=ios

Introduce GOOS=ios for iOS systems. GOOS=ios matches "darwin"
build tag, like GOOS=android match...

48f72478a68d0d9b7ab04eb466243b8764a12e4f authored about 4 years ago by Cherry Zhang <[email protected]>
net/http/cgi,net/http/fcgi: add Content-Type detection

This CL ensures that responses served via CGI and FastCGI
have a Content-Type header based on th...

79f6d1e5e1299f32949b4a04b242a777eb07fe70 authored about 4 years ago by Roberto Clapis <[email protected]>
net/http: fix data race due to writeLoop goroutine left running

Fix a data race for clients that mutate requests after receiving a
response error which is cause...

4244f7066d5c16792321382a61bc3e1103e1a312 authored about 4 years ago by Steven Hartland <[email protected]>
net/http: mark http/2 connections active

On Server.Shutdown, all idle connections are closed.
A caveat for new connections is that they a...

94e60f6c7281e37886325a2cff60ffd8dc084931 authored about 4 years ago by Michael Fraenkel <[email protected]>
src/go.mod, net/http: update bundled and latest golang.org/x/net

Updates x/net/http2 to git rev 62affa334b73ec65ed44a326519ac12c421905e3

x/net/http2: reject...

a132b61ba0e386ec8255ee890f37f64635935c6c authored about 4 years ago by Paschalis Tsilias <[email protected]>
net/http: reject negative suffix-length Range:bytes=--N with 416 status code

Fixes the file server to reject requests of the form:
"Range": "bytes=--N"
where "-N" is a n...

3d51cca44a6a29ef3d63663d334a9785cb8b2626 authored about 4 years ago by Emmanuel T Odeke <[email protected]>
net/http/fcgi: fix race in child.serve connection read

Guards the connection read with a mutex, because typeStdin
asynchronously and concurrently write...

8b1af16e2eab0aa348445d0024bf2ff9ee7959c6 authored about 4 years ago by Tzu-Chiao Yeh <[email protected]>
net/http/cgi: don't pass nil Body to the child handler

For server requests, the http.Request Body should not be nil.

Fixes #39190

Change-Id: I32de7b6...

1a81cce5c38f798dd7cd210e0ca6f1d1cb764d9f authored about 4 years ago by Marco <[email protected]>
net/http: refactor ResponseWriter.ReadFrom to permit splice on Linux

Rather than probe and guess if sendfile will work inside ResponseWriter.ReadFrom(src),
this chan...

69d9b66284e2b07141fe3a2067a39d8f7c93754d authored about 4 years ago by Paul Forgey <[email protected]>
net/http: fix detection of Roundtrippers that always error

CL 220905 added code to identify alternate transports that always error
by using http2erringRoun...

e18494ee5924d01d51ea26f30ab11888d6bd3019 authored about 4 years ago by Michael Fraenkel <[email protected]>
src/go.mod, net/http: update bundled and latest golang.org/x/net

Updates x/net/http2 to git rev c89045814202410a2d67ec20ecf177ec77ceae7f

http2: perform conn...

17a4d676f765d1734b31a8a3d358c7ab64f5290b authored about 4 years ago by Emmanuel T Odeke <[email protected]>
Revert "net/http: fix data race due to writeLoop goroutine left running"

This reverts CL 232799.

Reason for revert: net/http test is failing on all longtest builders.

...

760d49fca897a13e699d238682b521b85001ad7e authored about 4 years ago by Bryan C. Mills <[email protected]>
net/http: fix data race due to writeLoop goroutine left running

Fix a data race for clients that mutate requests after receiving a
response error which is cause...

1fdcf1b4ec1f88fc64dda5974c2998639723a699 authored about 4 years ago by Steven Hartland <[email protected]>
net/http: handle Request.URL.RawPath in StripPrefix

The StripPrefix wrapper strips a prefix string from the request's
URL.Path field, but doesn't to...

45bd2cbc71eb32ac4f68e6f2eafed5933d79c794 authored about 4 years ago by Andrew Gerrand <[email protected]>
net/http: set Content-Length:0 for empty PATCH requests as with POST, PATCH

Sets Content-Length:0 for nil bodies in PATCH requests, as we already do for POST and PUT reque...

75b0f07ae9473744f8638f12b9956bff19522173 authored about 4 years ago by Segflow <[email protected]>
net/http: use iotest.ErrReader in tests

Updates #38781

Change-Id: I16a66904167ca4c0e916619b4da1dd23795b3ab2
GitHub-Last-Rev: 45054235a0...

d3a622bad315b2461b4690d5a36ec2d7c1bea058 authored about 4 years ago by Carlos Alexandro Becker <[email protected]>
all: fix spelling mistakes

Change-Id: I7d512281d8442d306594b57b5deaecd132b5ea9e
GitHub-Last-Rev: 251e1d6857516b21fd71f65413...

9bc8e65fc576e43236d0a6c07c1a7a0c3ea16e2a authored about 4 years ago by lihaowei <[email protected]>
net/http: avoid setting body when NoBody is set for js/wasm

When http.NoBody is set, it is equivalent to Body being zero bytes.
We therefore set the body on...

b8ccbcf716f957ccd8966c5b0d734f5d29f895c6 authored about 4 years ago by Agniva De Sarker <[email protected]>
[dev.link] all: merge branch 'master' into dev.link

Clean merge.

Change-Id: If642f7901a797c6df5a0fa64aecebba22e5ee951

4144c9ea828d3ff818c727443237ead5c05724d6 authored over 4 years ago by Cherry Zhang <[email protected]>
net/http: fix cancelation of requests with a readTrackingBody wrapper

Use the original *Request in the reqCanceler map, not the transient
wrapper created to handle bo...

ba1adee49d1a1bab4cfd7f2cb9d1468c630746c6 authored over 4 years ago by Damien Neil <[email protected]>
[dev.link] all: merge branch 'master' into dev.link

Change-Id: I6545cb431e9e3efa02defca52af7eae502adb157

89b0f166aac3b0aef532aac7cf4f4546f9037c38 authored over 4 years ago by Cherry Zhang <[email protected]>
net/http: synchronize "100 Continue" write and Handler writes

The expectContinueReader writes to the connection on the first
Request.Body read. Since a Handle...

203725b6dda9f8357e8d2071973992488d16edbd authored over 4 years ago by Russ Cox <[email protected]>
[dev.link] all: merge branch 'master' into dev.link

Change-Id: I644cfc9dfd6e024a0d62bbd226db8639e4a87dc7

36054ad63f8f18915742afa01a1de4d523bfcad7 authored over 4 years ago by Cherry Zhang <[email protected]>
net/http: fix panic with If-None-Match value in http.ServeContent

Fixes #39817

Change-Id: I79f2ad7c836a8a46569f603aca583fdd526d22dc
GitHub-Last-Rev: 5b88aada219a...

e72682982d33f17d1688504a3b697ff9c51907a6 authored over 4 years ago by Marcus Weiner <[email protected]>
[dev.link] all: merge branch 'master' into dev.link

Clean merge.

Change-Id: I2ae0e4cc67e24216c85619717657dce36e887a54

f4944d7aa5180f5ffd1b3c357232341774eeafc1 authored over 4 years ago by Cherry Zhang <[email protected]>
net/http: document Dir behavior with symlinks

Based on CL 229377.

Change-Id: I016eec20672c909e8fabe799c277f4d2540fc555
Reviewed-on: https://g...

91be05b5b8257f0e699254349b2b03045ba91d1a authored over 4 years ago by Katie Hockman <[email protected]>
[dev.link] all: merge branch 'master' into dev.link

NOT apply CL 238779, which is for sym.Symbols.

Clean merge other than that.

Change-Id: I535e95...

80be5043a1b2e8851fa2e8952e6ed12e7fbdb8fc authored over 4 years ago by Cherry Zhang <[email protected]>
net/http: make Transport.RoundTrip preserve Requests

Ensure that the exact Request passed to Transport.RoundTrip
is returned in the Response. Do not ...

e46e078b2539b39820c630242d9b23336ef041f8 authored over 4 years ago by Damien Neil <[email protected]>
[dev.link] cmd/compile, cmd/link: remove dead methods if type is not used in interface

Currently, a method of a reachable type is live if it matches a
method of a reachable interface....

6e35fcdb76ed83eff3101acb1d13b76dc3bfd2d1 authored over 4 years ago by Cherry Zhang <[email protected]>
all: avoid awkward wording from CL 236857

CL 236857 removed all uses of whitelist/blacklist, which is great.
But it substituted awkward ph...

ca6b048c8a798e74b9f080b7b9c92f370866dcf0 authored over 4 years ago by Russ Cox <[email protected]>
all: replace usages of whitelist/blacklist and master/slave

There's been plenty of discussion on the usage of these terms in tech.
I'm not trying to have ye...

2931e9c9e5475539a52489e86832931e15629b81 authored over 4 years ago by Filippo Valsorda <[email protected]>
net/http: reject HTTP/1.1 Content-Length with sign in response

Enforces section 14.13 of RFC 2616 so that Content-Length header
values with a sign such as "+5"...

321c866191e462069a515ff5a306f55a38997413 authored over 4 years ago by Paschalis Tsilias <[email protected]>
net/http: clarify that AddCookie only sanitizes the Cookie being added

AddCookie properly encodes a cookie and appends it to the Cookie header
field but does not modif...

a5522ff77e2bf13e42515cfe8f162b70cc8d64cd authored over 4 years ago by Volker Dobler <[email protected]>
net/http: handle body rewind in HTTP/2 connection loss better

In certain cases the HTTP/2 stack needs to resend a request.
It obtains a fresh body to send by ...

ea5f30ae7ad5c32f2e5c51848272d74df844c59d authored over 4 years ago by Russ Cox <[email protected]>
net/http/pprof: document the trace endpoint is for execution trace

Update google/pprof#529

Change-Id: Iec3b343a487b399ada3a6f73c120b5f7ed8938be
Reviewed-on: https...

f473d28d49dc1cd861582d65b2d4c1c37c86a5d9 authored over 4 years ago by Hana (Hyang-Ah) Kim <[email protected]>
net/http/cgi: reject invalid header names

Being lenient on those has caused enough security issues.

Spun out of CL 231419.

Fixes #38889
...

2bb00de7bcb964feb247be8416d7fc3e7390164c authored over 4 years ago by Filippo Valsorda <[email protected]>
net/http: use ASCII space trimming throughout

Security hardening against HTTP request smuggling. Thank you to ZeddYu
for reporting this issue....

0e65a46d66c5dab9053f6afdad75f37bb378d3bc authored over 4 years ago by Filippo Valsorda <[email protected]>
net/http: only support "chunked" in inbound Transfer-Encoding headers

This is a security hardening measure against HTTP request smuggling.
Thank you to ZeddYu for rep...

cb7c5a09ffe4b5afef35fc206d5755a642993286 authored over 4 years ago by Filippo Valsorda <[email protected]>