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
This commit elimates the request allocation and shallow copy duplication
already done by req.Wit...
The syscall package checks for null bytes now.
This was added in https://codereview.appspot.com/...
The presence of Request.GetBody being set on a request was causing all
redirected requests to ha...
Change-Id: I31fa5f906ad2e8dc475dbbeb91f568f91e16861b
Reviewed-on: https://go-review.googlesource...
CL 5232 added TestServerHijackGetsBackgroundByte, which is failing
on Plan 9, because CloseWrite...
CL 35234 added TestServerHijackGetsBackgroundByte_big, which is failing
on Plan 9, because Close...
Follow-up test from Ian's comments in https://golang.org/cl/35232
after submit.
Change-Id: Ifa5...
b5c605487c48c8e6cebbc6117aea0194b8e85a81 authored about 8 years ago
Previously, if the Hijack called stopped the background read call
which read a byte, that byte w...
The test was previously an integration test, relying on luck and many
goroutines and lots of tim...
In Go1.7, a 301, 302, or 303 redirect on a HEAD method, would still
cause the following redirect...
Fixes #18535
Change-Id: I9e49d33ce357a534529a6b0fcdbc09ff4fa98622
Reviewed-on: https://go-revie...
If one of the c.Get(ts.URL) results in an error, the child goroutine
calls t.Errorf, but the tes...
Fixes #18506
Change-Id: I6b0b107296311178938609e878e1ef47a30a463f
Reviewed-on: https://go-revie...
Fixes #18447
Change-Id: I5d60c3632a5ce625d3bac9d85533ce689e301707
Reviewed-on: https://go-revie...
Updates http2 to x/net/http2 git rev 8fd7f25 for:
http2: clear WriteTimeout in Server
h...
Current handling of WriteTimeout for http2 does not
extend the timeout on new streams. Disable t...
Avoid potential race conditions by clarifying to implemntors of the
ReverseProxy interface, the ...
In Go 1.8, we'd removed the Transport's Request.Body
one-byte-Read-sniffing to disambiguate betw...
Updates #18347
Updates #9348
Change-Id: I115203b0be3eb2e7e269ff28e2f3c47eeca86038
Reviewed-on: ...
I haven't been able to reproduce this one, but change a few suspect
things in this test. Notably...
Updates bundled x/net/http2 to git rev 1195a05d for:
http2: fix incorrect panic
https:/...
Updates #18305
Change-Id: I63b28d511df1a6c54e32c8bfc7e2264f94e38cd7
Reviewed-on: https://go-rev...
The client code was using time.Now() (wall time) to determine whether
the cause of a non-nil err...
And move some code to make control flow more obvious.
No functional change.
Change-Id: Iefaa96f...
87cb495669743b88d8cee48fd09c0bfdd3438bef authored about 8 years ago
This rolls back https://golang.org/cl/27117 partly, softening it so it
only retries POST/PUT/DEL...
Updates bundled x/net/http2 to git rev 8dab9293 for:
http2: make Transport retry on server'...
40bbae268e503353ed4d1a5c8ffe545b4ad652e2 authored about 8 years ago
Change-Id: I84043b6fe4b20a2514d47217e07e44f26bec52ab
Reviewed-on: https://go-review.googlesource...
The introduction of NoBody and related body-peeking bug fixes also
added a "cleanup" of sorts to...
NoBody is new in Go 1.8.
Found while investigating #18117
Change-Id: I6bda030f358e2270f090d108...
8997d806827025ae3af376043b43c9988ee7ef53 authored about 8 years ago
Reverts https://golang.org/cl/23672 and tweaks the text to clarify
HTTP/2 request cancelations a...
Fixes #18096
Change-Id: I22e1abb75dc19c4d1985b6857c79a81b9db5a76c
Reviewed-on: https://go-revie...
The code was intended to test that mux handler should redirect at
most once, but the added loop ...
As discussed in #18095 the server should not log for bad user input.
Change-Id: I628a796926eff3...
b8190813ddb71d292341670b46ad7c09f924326a authored about 8 years ago
Change-Id: I89f276b32015882437e128814573343a4ca53569
Reviewed-on: https://go-review.googlesource...
Updates #18082
Change-Id: I2e65b115b809c1e1bf813f538989d1a1f96b2876
Reviewed-on: https://go-rev...
Fixes #18054
Change-Id: I6773943a95b92eebd7e347f8f7a80843b4827243
Reviewed-on: https://go-revie...
Document that key in Header.Get(key) is case insensitive in
http.Header, mail.Header, textproto....
Change-Id: Ia27ca728bafcf20d001b477787b21d16ae12960d
Reviewed-on: https://go-review.googlesource...
When I added t.Parallel to some tests earlier, I overlooked some using
the global "Get" func, wh...
See issues for details. We can expand this test during the Go 1.9
cycle.
Updates #18008
Change...
29319d7584bcb35d9fed415ce47bc8b1ae1edbec authored about 8 years agoUpdates #18008
Change-Id: I8fde0d71d15b416db4d262f6db8ef32a209a192f
Reviewed-on: https://go-rev...
Should fix flakes like:
https://build.golang.org/log/c8da331317064227f38d5ef57ed7dba563ba1b38
...
a0c0ab84cccf8602faaa549778b83d774ad2c711 authored about 8 years agoUpdates #17243
Change-Id: Iaa737874e75fdac73452f1fc13a5749e8df78ebe
Reviewed-on: https://go-rev...
Change-Id: I897237667ffe9e9b2a5f92251a6f665d29479fd2
Reviewed-on: https://go-review.googlesource...
Fixes #17900.
Change-Id: I42cda6ac9cf48ed739d3a015a90b3cb15edf8ddf
Reviewed-on: https://go-revi...
I guess this was fixed at some point. Remove a skipped test in
net/http and add an explicit test...
Updates x/net/http2 to x/net git rev 00ed5e9 for:
http2: schedule RSTStream writes onto its...
985194492e6bf34fa75e2db65bc8cfb6de52df1a authored about 8 years agoUpdates x/net/http2 to x/net git rev 6dfeb344 for:
http2: make Server respect http1 Server's...
899b8018f3f5dd93bc79e15b332ced468d392ee8 authored about 8 years agoDeadlines have been implemented on Plan 9 in CL 31521.
Enable the following tests:
- TestServ...
cea3eb59fe77b1955122b8813fef253fb48a7777 authored about 8 years ago
Change-Id: I3c664201baef6d7dbed94dab63db0ac974bf6817
Reviewed-on: https://go-review.googlesource...
This issue has been fixed in CL 31390.
Change-Id: I0c2425fd33be878037d10d612a50116a7b693431
Rev...
If the Server's Shutdown (or SetKeepAlivesEnabled) method was called
while a connection was in a...
Fixes #12745
Change-Id: Iebb7c97cb5b68dc080644d796a6ca1c120d41b26
Reviewed-on: https://go-revie...
TestInterruptWithPanic_h2 was added yesterday in
https://golang.org/cl/33099 and https://golang....
Fixes these complaints from vet:
cmd/compile/internal/gc/noder.go:32: cmd/compile/internal/synt...
930d7a521ad5ebeb37411b0c0f1812ca842e5b54 authored about 8 years agoFixes #16412
Change-Id: Idc65d2a62414a9b1573e6bd9f8601b52985b5dea
Reviewed-on: https://go-revie...
Updates http2 to x/net/http2 git rev 0e2717d for:
http2: conditionally log stacks from panic...
8bb2ddeafa9091db69db11d3413f018194cc1ccd authored about 8 years ago
This test was only enabled by default today so it hasn't been hardened
by build.golang.org. Welc...
The old Transport example ended up disabling HTTP/2.
Use a better example.
Fixes #17051
Fixes ...
Updates http2 to x/net/http2 git rev 9ef22118 for:
http2: fix CloseNotify data race
https...
Add an explicit way for Handlers to abort their response to the client
and also not spam their e...
Fixes #17721
Change-Id: I19fd81c9909a22b01a4dc9c75f3f0e069c8608ca
Reviewed-on: https://go-revie...
Clean up & document the ProtocolError gunk.
Fixes #17558
Change-Id: I5e54c25257907c9cac7433f7a...
1c7ba0bf58b45e48c768c23a65a1e98247684c93 authored about 8 years ago
Server.TLSNextProto being nil is necessary but not sufficient but
http2 being automatically enab...
Based on Filippo Valsorda's https://golang.org/cl/24230
Fixes #16094
Change-Id: Ie39b0834e220f...
941292e4c9f4affb53e437c891afe5f146a35a17 authored about 8 years agoFixes #17878
Change-Id: I062ac514239068c58175c9ee7964b3590f956a82
Reviewed-on: https://go-revie...
Fixes #17838
Change-Id: Ifafb4542a0ed6f2e29c9a83e30842e2fc18d6546
Reviewed-on: https://go-revie...
Fix another case of a parallel test relying on a global variable
(DefaultTransport) implicitly.
...
Fixes #17815
Change-Id: I766082d28a14c77f5dfb6cd1974b86cb0a8fe31a
Reviewed-on: https://go-revie...
Fixes #17805
Change-Id: I30d3e63a82b3690a76f2bb33d59ae34c62a7fa59
Reviewed-on: https://go-revie...
A few tests were using the global DefaultTransport implicitly.
Be explicit instead. And then mak...
Follow up of CL https://go-review.googlesource.com/32595.
Change-Id: I2b3ff7e6b2c764bb6bc5e9aa6...
a6ad51bfa2a4769762f8ec5698a25f5ef8f7f255 authored about 8 years ago
Before: 8.9 seconds for go test -short
After: 2.8 seconds
There are still 250 tests without t....
9b811e15313249f77adcfd5d44c0a9e2c63639b6 authored about 8 years ago
Change-Id: Ia03f993287d2929f35b4c92d00fe25c7243bd8b3
Reviewed-on: https://go-review.googlesource...
This CL tweaks the new (unreleased) 307/308 support added in
https://golang.org/cl/29852 for #10...
- Added support for If-Match and If-Unmodified-Since.
- Precondition checks now more strictly fo...
Fixes #17754
Updates #9478 (details in here)
Change-Id: Iae2c1ca05a18ed266b53b2594c22fc57fab33c...
4253a52f9c402d1397c599e83d32ed9f2539dd56 authored about 8 years agoUpdates http2 to x/net/http2 git rev 569280fa for:
http2: fix over-aggressive ignoring of fr...
00640996637261cf2115d0fb05b6a6f1823b0a23 authored about 8 years agoUpdate bundled x/net/http2 to x/net git rev 6c4ac8bd for:
http2: fix Transport race sending ...
a2a0711e25ec34c008575b5b14e40e77b7211b93 authored about 8 years agoFixes #14353
Change-Id: I9cb5a5192ecdae37c100969395ed6a1564b8d34e
Reviewed-on: https://go-revie...
Fixes #13290
Change-Id: I0f7e7683d86db501cbedb6a0b7349ceb0769701c
Reviewed-on: https://go-revie...
Go's http1 implementation originally had a mechanism to send HTTP
trailers based on pre-declarin...
Adds ModifyResponse, an optional func to ReverseProxy
that modifies a response in the backend, r...
Also updates x/net/http2 to git rev 541150 for:
http2: add support for graceful shutdown of ...
0a5013140f9864c8afda3db9fe753f24bc26faa9 authored about 8 years agoFixes #16997
Change-Id: I9ca27d8cff1905584862997d0e8a11ce3c4c21cb
Reviewed-on: https://go-revie...
Provides redirection support for 307, 308 server statuses.
Provides redirection support for DELE...
Updates http2 to x/net git rev 76c1a11e for:
http2: initialize Server.IdleTimeout from htt...
2ed2b323d92c8151fb2a8af9338e0ad6cfd94796 authored about 8 years ago
Following RFC 6265 Section 5.1.1.5, ensure that the minimum
year for which an Expires value is v...
Fixes #17152.
Change-Id: I4dd5e505c65f3efe736e46d3781cccf31d7f574f
Reviewed-on: https://go-revi...
Updates http2 to x/net git rev b626cca for:
http2: implement support for server push
ht...
From lost-in-flight comments on CL 32190.
Change-Id: I2029cbac6d24b5944a796b359080011ec3a8da92
...
Fixes #16717
Change-Id: I7b6518609796a537437539c35461a18e9e6f207f
Reviewed-on: https://go-revie...
- Removes a subject-verb disagreement.
- Documents that PATCH requests also populate PostForm.
-...
Updates #14204
Updates #16450
Updates #16100
Change-Id: Ic283bcec008a8e0bfbcfd8531d30fffe710525...
73d5ad165d06d5d049642de6f0e43ff5590681c4 authored over 8 years ago
Change-Id: I6815a8560dd9fe0a0ebd485a0693f7044ba09848
Reviewed-on: https://go-review.googlesource...
In the situation where the Client.Jar is set and the Request.Header
has cookies manually inserte...
This interface will be implemented by golang.org/x/net/http2 in
https://go-review.googlesource.c...
Fixes #16659
Change-Id: I13dd797e93e0b572eaf8726f1be594870d40183b
Reviewed-on: https://go-revie...
This is an alternate solution to https://golang.org/cl/31445
Instead of making NewRequest retur...
cff0f4ad29d8b247bac0a8aaa16ed7a3a5227c42 authored over 8 years ago
Now that we have the Clone method on tls.Config, net/http doesn't need
any custom functions to d...