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
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]>
The existing implementation allows read / write deadlines to exist
in the past. This updates con...
If there is more than the expected single dial, the channel will block.
Allow at least one conne...
This change conforms Recorder with net/http servers, to panic
when a handler writes a non-3 digi...
This follows the spelling choices that the Go project has made for English words.
https://github...
Updates: #45402
Change-Id: Ia61f422d058bf57fc3688abc25597d6cc1692c51
Reviewed-on: https://go-rev...
Update references missed in CL 263142.
For #41190
Change-Id: I778760a6a69bd0440fec0848bdef539c...
7c528aae76df6d61de2688c5c2a84475a49ad940 authored over 3 years ago by KimMachineGun <[email protected]>
Change-Id: Iff5074713e1a4484c04b8628fb2611b6d4e154c7
GitHub-Last-Rev: bb0861bbbe31bc2bbda667c054...
Ensure that user ConnState callbacks have completed before returning
from (*httptest.Server).Clo...
When a in-flight request is cancelled, (*Transport).cancelRequest is
called. The cancelRequest f...
Current MaxBytesReader behaviour differs from its documentation. It's
not similar enough to io.L...
Updates ExampleGet to show how to handle bad responses with non-1XX,2XX
status codes. Given that...
Adds mentions of NewRequestWithContext and *Client.Do as prescriptions
for how to use a specifie...
Adds the (*tls.Conn).HandshakeContext method. This allows
us to pass the context provided down t...
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]>
This code is generated from golang.org/x/net/http2 and thus any changes
first have to occur ther...
Change-Id: Ib0469232a2b69a869e58d5d24990ad74ac96ea56
GitHub-Last-Rev: eb38e049ee1e773392ff3747e1...
Change-Id: Ieba05dea892ec9855a63b80e456bcf9188eef855
GitHub-Last-Rev: 5f7663ac4aaecb01a27a043092...
In HTML5 br tags don't need a closing slash
Change-Id: Ic53c43faee08c5b1267daa9a02cc186b1c255ca...
169aadee8f24e6f0ed0c09928294a07473ce22b9 authored over 3 years ago by John Bampton <[email protected]>
This file is generated, so the fix needs to happen upstream.
The file can then be regenerated us...
The Go standard library retrofitted context support onto existing APIs
using context.Background ...
Change-Id: I919d9c3968c0fcd33774e714f22182504790bd01
Reviewed-on: https://go-review.googlesource...
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]>
The race reported in issue #41167 was detected only because the
ReadWriter used in test code hap...
This test hijacks a connection. It was reading from the net.Conn
returned by Hijack, not the buf...
Fix a deadlock in DumpRequestOut which can occur if the request is
cancelled between response be...
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]>
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]>
1. The test now checks the response status code.
2. The transport has been changed to not set "C...
Done with:
go get -d golang.org/x/net@latest
go mod tidy
go mod vendor
go generate -run bun...
As part of #42026, these helpers from io/ioutil were moved to os.
(ioutil.TempFile and TempDir b...
Issue #41600 fixed the issue when a second request canceled a connection
while the first request...
Returning an error about integer overflow is needlessly pedantic.
The meaning of ReadForm(MaxInt...
If one was using http.Transport with DisableKeepAlives and trying
to upgrade a connection agains...
Once the connection is put back into the idle pool, the request should
not take any action if th...
The Go 1.16 code freeze has recently started. This is a time to update
all golang.org/x/... modu...
Adds the (*tls.Conn).HandshakeContext method. This allows
us to pass the context provided down t...
Instead of always polling 500ms, start with an interval of 1ms and
exponentially back off to at ...
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]>
Tests that if the combination of:
* HTTP multipart file payload size
* ParseMultipartForm's maxM...
The old ioutil references are still valid, but update our code
to reflect best practices and get...
Two different functions in the http API expect a FileSystem:
http.FileSystem and http.NewFileTra...
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]>
This makes the behavior of the cgi package on NetBSD consistent with its
behavior on the other B...
The old os references are still valid, but update our code
to reflect best practices and get use...
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]>
ParseMultipartForm has been changed to return an error if maxMemory
parameter + 10MB causes int ...
Fixes: #41634
Change-Id: Ib78cc37a4d2ca0753d567eafb616238e4103484e
Reviewed-on: https://go-revi...
Fixes #33585.
Fixes #36797.
Change-Id: I9202b624642368089a9ce827e3e7a7427100bf4f
Reviewed-on: h...
Makes *Request.write always close the body, so that callers no longer
have to close the body on ...
This is primarily aimed at client requests where the user can supply
their own io.ReadCloser, bu...
Fixes #22540.
For #33585.
Change-Id: I504b5a91ce1a39cd4ffd2380178a1b8f82f49dd3
Reviewed-on: htt...
Removing `DualStack` from `http.DefaultTransport` since it is deprecated
https://github.com/gola...
When rejecting a request with an unsupported HTTP protocol version,
return a 505 error ("HTTP Ve...
Finish up a prior TODO by making ReverseProxy flush immediately
if Content-Length is -1, which i...
On a loaded system, sometimes connections don't work out.
Ignore those in TestTransportPersistCo...
The existing implementation in Request.Clone() assigns the wrong
pointer to r2.TransferEncoding....
html/template indirectly uses reflect MethodByName, this causes linker
to use conservative mode ...
The current specification does not foresee a SameSite attribute without
a value. While the exist...
Prior to this commit, the profiling code had a sleep() function that
waits and unblocks on eithe...
Fixes golang/go#41048
Change-Id: I38e01605bffb6f85100c098051b0c416dd77f261
Reviewed-on: https:/...
Updates x/net/http2 to git rev 5d4f7005572804eaf7f5ecdd2473a62557f733ba
http2: send WINDOW_...
d3c5651ea5f8cb0956eabe55bd2c4e0559e064bd authored about 4 years ago by Emmanuel T Odeke <[email protected]>
Introduce GOOS=ios for iOS systems. GOOS=ios matches "darwin"
build tag, like GOOS=android match...
This CL ensures that responses served via CGI and FastCGI
have a Content-Type header based on th...
Fix a data race for clients that mutate requests after receiving a
response error which is cause...
On Server.Shutdown, all idle connections are closed.
A caveat for new connections is that they a...
Updates x/net/http2 to git rev 62affa334b73ec65ed44a326519ac12c421905e3
x/net/http2: reject...
a132b61ba0e386ec8255ee890f37f64635935c6c authored about 4 years ago by Paschalis Tsilias <[email protected]>
Fixes the file server to reject requests of the form:
"Range": "bytes=--N"
where "-N" is a n...
Guards the connection read with a mutex, because typeStdin
asynchronously and concurrently write...
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]>
Rather than probe and guess if sendfile will work inside ResponseWriter.ReadFrom(src),
this chan...
CL 220905 added code to identify alternate transports that always error
by using http2erringRoun...
Updates x/net/http2 to git rev c89045814202410a2d67ec20ecf177ec77ceae7f
http2: perform conn...
17a4d676f765d1734b31a8a3d358c7ab64f5290b authored about 4 years ago by Emmanuel T Odeke <[email protected]>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]>
Fix a data race for clients that mutate requests after receiving a
response error which is cause...
The StripPrefix wrapper strips a prefix string from the request's
URL.Path field, but doesn't to...
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]>Updates #38781
Change-Id: I16a66904167ca4c0e916619b4da1dd23795b3ab2
GitHub-Last-Rev: 45054235a0...
Change-Id: I7d512281d8442d306594b57b5deaecd132b5ea9e
GitHub-Last-Rev: 251e1d6857516b21fd71f65413...
When http.NoBody is set, it is equivalent to Body being zero bytes.
We therefore set the body on...
Clean merge.
Change-Id: If642f7901a797c6df5a0fa64aecebba22e5ee951
4144c9ea828d3ff818c727443237ead5c05724d6 authored over 4 years ago by Cherry Zhang <[email protected]>
Use the original *Request in the reqCanceler map, not the transient
wrapper created to handle bo...
Change-Id: I6545cb431e9e3efa02defca52af7eae502adb157
89b0f166aac3b0aef532aac7cf4f4546f9037c38 authored over 4 years ago by Cherry Zhang <[email protected]>
The expectContinueReader writes to the connection on the first
Request.Body read. Since a Handle...
Change-Id: I644cfc9dfd6e024a0d62bbd226db8639e4a87dc7
36054ad63f8f18915742afa01a1de4d523bfcad7 authored over 4 years ago by Cherry Zhang <[email protected]>Fixes #39817
Change-Id: I79f2ad7c836a8a46569f603aca583fdd526d22dc
GitHub-Last-Rev: 5b88aada219a...
Clean merge.
Change-Id: I2ae0e4cc67e24216c85619717657dce36e887a54
f4944d7aa5180f5ffd1b3c357232341774eeafc1 authored over 4 years ago by Cherry Zhang <[email protected]>Based on CL 229377.
Change-Id: I016eec20672c909e8fabe799c277f4d2540fc555
Reviewed-on: https://g...
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]>
Ensure that the exact Request passed to Transport.RoundTrip
is returned in the Response. Do not ...
Currently, a method of a reachable type is live if it matches a
method of a reachable interface....
CL 236857 removed all uses of whitelist/blacklist, which is great.
But it substituted awkward ph...
There's been plenty of discussion on the usage of these terms in tech.
I'm not trying to have ye...
Enforces section 14.13 of RFC 2616 so that Content-Length header
values with a sign such as "+5"...
AddCookie properly encodes a cookie and appends it to the Cookie header
field but does not modif...
In certain cases the HTTP/2 stack needs to resend a request.
It obtains a fresh body to send by ...
Update google/pprof#529
Change-Id: Iec3b343a487b399ada3a6f73c120b5f7ed8938be
Reviewed-on: https...
Being lenient on those has caused enough security issues.
Spun out of CL 231419.
Fixes #38889
...
Security hardening against HTTP request smuggling. Thank you to ZeddYu
for reporting this issue....
This is a security hardening measure against HTTP request smuggling.
Thank you to ZeddYu for rep...