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
Fixes #48948
Change-Id: I411e3be99c7979ae289fd937388aae63d81adb59
GitHub-Last-Rev: 14abd7e4d774...
Change-Id: I5ebfc6a89323cc086ea0e0b619370dc45da1f3a3
Reviewed-on: https://go-review.googlesource...
The test had been setting an arbitrary 200ms timeout to allow the
server's handler to set up bef...
This test assumes that two successive TCP connections will use different
source ports. This does...
Co-authored-by: Alex Willmer <[email protected]> (GitHub @moreati)
Co-authored-by: Alexander Y...
Pull in approved backports to golang.org/x/net/http2:
95aca89 set ContentLength to -1 for HEAD...
e7221d4034fe23513e5a1934dc9f6330074808c4 authored about 3 years ago by Dmitri Shuralyov <[email protected]>
The upstream cmd/bundle tool does not yet omit it,
and the longtest builders test that the gener...
When these packages are released as part of Go 1.18,
Go 1.16 will no longer be supported, so we ...
The net/http package has a documented contract that if DialContext, DialDLSContext, Dial or Dial...
b722ea7cbe25e4f79f6e2d8979d59561b59a7a31 authored about 3 years ago by Neil Alexander <[email protected]>
The Content-Length was incorrectly set to 0 for ill-formed and invalid
values. In these cases, r...
Fixes #48861
Change-Id: I3f55bfbdc4f2cf5b33d1ab2d76e01335bb497c6f
GitHub-Last-Rev: 0ecd790b87dd...
f1c2702fbb1e30d7d42572380a0de187ee8039cd authored about 3 years ago by Simone Basso <[email protected]>
10637aeede8538be68b7283e3076dba1b67a853c authored about 3 years ago by Simone Basso <[email protected]>
Merge go1.17.2
edd6762927bc2ff8d13f95dede4c9d819aa35fc2 authored about 3 years ago by Simone Basso <[email protected]>0b02315d80b0d782437c0fd2bc44f6b31125053a authored about 3 years ago by Simone Basso <[email protected]>
A user wrote me privately mentioning that if they configure a proxy
with `oohttp.Transport.Prox...
c376a739c9a751fda60da0154c35931506a3afa9 authored about 3 years ago by Simone Basso <[email protected]>
Fixes #48120
Change-Id: I72e89af8aaf3310e348d8ab639925ce0bf84204d
Reviewed-on: https://go-revie...
This change allows httputil.ReverseProxy to detect SSE (server-sent events)
content when the res...
The (*http.Cookie).String method used by SetCookie will silently discard
or sanitize any fields ...
Fixes #48564.
Fixes #23559.
Change-Id: I8e0b646c4791d3a6fb17df1af0a7175b68ce8983
Reviewed-on: h...
Many uses of Index/IndexByte/IndexRune/Split/SplitN
can be written more clearly using the new Cu...
RFC 2616 permits multiple digits in the major and minor numbers of an
HTTP version:
https://da...
b485fafe365cfeae96a4d0ff0314f1bf65fb37f0 authored about 3 years ago by Damien Neil <[email protected]>
The "curl" binary is already used at several other places inside
the code base, whereas this was...
Not forwarding the context is a huge issue in itself because
we lose the possibility of cancelli...
Fixes the issue that otherwise we don't honour the stdReq.Host field
and possibly any other fiel...
9a5243e74ef585457a7ff0ced974779242cad119 authored about 3 years ago by Simone Basso <[email protected]>
f69a9d0ae546c0de303a7324589bc84eb8968b2e authored about 3 years ago by Simone Basso <[email protected]>
Otherwise, the behavior is quite unexpected when you try to
cancel a request or when you enforce...
Fix a hang that occurs when making a request and all of the following apply:
* The request metho...
When recovering from a panic in a HTTP handler, close the request body
before closing the *conn,...
For #47692.
Change-Id: I40d5a3ed245b99de5e82e336f955c60b58880cdb
Reviewed-on: https://go-review...
For #42777.
Change-Id: I963db8c666e8bcf0fc4f390b359db6408a0f792b
Reviewed-on: https://go-review...
bbe70ef3c22a19245d680c079009471eea6a5477 authored about 3 years ago by Simone Basso <[email protected]>
Merged from upstream: go1.17
As part of merging, I made sure that `*tls.Conn` is not used any...
3590f53e6931a6f76e01e0d1ff1b6541e11d8e8b authored about 3 years ago by Simone Basso <[email protected]>375efaa2bdda5665fc5e581cc4daa48e0e1b7677 authored about 3 years ago by Simone Basso <[email protected]>
7d1a8a19896a69aad2b966ba2cfc502bc858a85f authored about 3 years ago by Simone Basso <[email protected]>
Conflicts:
cgi/integration_test.go
cookiejar/jar.go
fcgi/fcgi_test.go
header.go
http_test.g...
Change-Id: Ia6df881badf9a704c7f56967404d37e230b88a09
Reviewed-on: https://go-review.googlesource...
Requested by @kelmenhorst
f8ceac6f2622b3a5be3cb024b7d05938ef48da98 authored about 3 years ago by Simone Basso <[email protected]>This diff adds a wrapper for `Transport` that looks like an `http.Transport`.
Part of https:/...
35949dcf526fab7fdb8fb11fff4432c3c8fbdc85 authored about 3 years ago by kelmenhorst <[email protected]>
Don't let handlers inject unexpected headers by setting keys like:
w.Header().Set("Evil: x\r\nS...
3d5b13e21a2c35cfd563b14894b4abbd39a44fdf authored about 3 years ago by Simone Basso <[email protected]>
30d539eb4308d52a5abfe9f1c3cbae6fed7a79a4 authored about 3 years ago by Simone Basso <[email protected]>
a091a468ee680a12166c5325d8eab8074f903925 authored about 3 years ago by Simone Basso <[email protected]>
485ec906cf4e4d45194ceedae7d1c1dde712d5be authored about 3 years ago by Simone Basso <[email protected]>
6504aad05ed1d5f01722892a39453a4dab7d8b1f authored about 3 years ago by Simone Basso <[email protected]>
726177b1d4f6b7246b84f0e998f5b853f0c26f1e authored about 3 years ago by Simone Basso <[email protected]>
Since the paths are different in this fork, we need to adjust such
a filter, otheriwse `go test...
50c259c7727832aa08aead92a6292efeadaa81be authored about 3 years ago by Simone Basso <[email protected]>
6dada9aead498d8c62bb66cd2a6431222ea5553c authored about 3 years ago by Simone Basso <[email protected]>
c6634a73dcbcdbdeb8b84508467dcad3ddfc95f6 authored about 3 years ago by Simone Basso <[email protected]>
OONI copyright of course only applies to code written by us.
e4c64e1207b6b06364eb6e7c56d0897877b0f897 authored about 3 years ago by Simone Basso <[email protected]>55b2b0ca1be892daac94ccf50bba270f637dd936 authored about 3 years ago by Simone Basso <[email protected]>
Merge go1.16.7
f1ede37e1987efe2505a7c47f1e363d90e7a518e authored about 3 years ago by Simone Basso <[email protected]>221ac9de888ee416e6a55250c030dd75110690a1 authored about 3 years ago by Simone Basso <[email protected]>
af5ae3a5a7180b034885ac915e1d1cb42c7427ae authored about 3 years ago by Simone Basso <[email protected]>
With this abstraction in place, it's quite easy to use
github.com/refraction-networkings/utls w...
finish forking: make sure most test pass w/o errors
84e4697dc90fbcfe47a1357c9b99c547f05119db authored about 3 years ago by Simone Basso <[email protected]>af545a76d55cfe59968648ad1bbede38c8285965 authored about 3 years ago by Simone Basso <[email protected]>
Again, I do not fully understand why there are differences and maybe
one day I will, but this si...
While I understand different prefixes, it is not fully clear to me
the `relevantCaller` part. No...
finish forking: make sure that `go test ./...` builds
b8642092f757d1d21883b2f65a42404ac69538b8 authored about 3 years ago by Simone Basso <[email protected]>We cannot depend on stdlib internal pkgs.
b8e051c16d59bc6170370b133ff40adb9fa4f92f authored about 3 years ago by Simone Basso <[email protected]>We need to depend on our fork not on stdlib.
6f4fc5f5ba0404720f86477630245906a445b133 authored about 3 years ago by Simone Basso <[email protected]>We cannot depend on stdlib internal pkgs.
d1e5a79a5d9f959c980d85e78048f7db366e2c6c authored about 3 years ago by Simone Basso <[email protected]>We cannot depend on stdlib internal pkgs.
713b2d7f1b756fa20c38e743211d8b46e33d04ef authored about 3 years ago by Simone Basso <[email protected]>finish forking: remove net/http dep and ensure go build ./... works
d7bc7c8e0d5e370b4391eabf95d08713a19b3abb authored about 3 years ago by Simone Basso <[email protected]>We cannot import internal packages in the Go standard library.
There is code in OONI that is us...
a34aa4b4dd559a1f8bfe78993b41ff98248aba68 authored about 3 years ago by Simone Basso <[email protected]>We cannot access internal packages in the Go standard library.
Here the simples action seems to...
05b46deabf1e118d2a327703f8006b7b1ee2bb73 authored about 3 years ago by Simone Basso <[email protected]>Verified we don't depend anymore from `net/http` by running:
```
go list -f '{{ .Imports }}' ./...
c854fe40292d2a7111edaff68503e29de8de2dba authored about 3 years ago by Simone Basso <[email protected]>
54c5cd8fd17c6d1ab776f7b2bcbc655ad6b06b2d authored about 3 years ago by Simone Basso <[email protected]>
This test made many requests over the same connection for 10
seconds, trusting that this will ex...
This test made many requests over the same connection for 10
seconds, trusting that this will ex...
Reading from an incoming request body after the request handler aborts
with a panic can cause a ...
Reading from an incoming request body after the request handler aborts
with a panic can cause a ...
Change-Id: I7acda22c01c5350ebf5ddabb1c12af96d368de5d
GitHub-Last-Rev: 3e5c022f8764d4abf91c964ceb...
Change-Id: I55b6d5c77221569eeafea625379affd476a65772
Reviewed-on: https://go-review.googlesource...
CL 249238 changes ResponseWriter.ReadFrom to probe the source with
a single read of sniffLen byt...
Change-Id: I04662a08e07c49f629f9067a89bf453e697d44dd
Reviewed-on: https://go-review.googlesource...
The net/http/internal package contains a PEM-encoded private key used in
tests. This key is init...
Fixes #45973
Change-Id: I6cbe05f5d1d3c324900c74314b0ea0e12524d7f2
Reviewed-on: https://go-revie...
Semicolons are no longer valid separators, so
net/url.ParseQuery will now return an error
if any...
CL 249238 changes ResponseWriter.ReadFrom to probe the source with
a single read of sniffLen byt...
If the client request never makes it to the server, the outstanding
accept is never broken. Chan...
Previously, we'd fail to remove the Connection header from a request
like this:
Connection:...
47aaa27b9438171e5f1e24fe0f8f0fa2e84c2c64 authored over 3 years ago by Filippo Valsorda <[email protected]>
The documentation of the Client.Do method and Get function incorrectly
stated that, in case of c...
Previously, we'd fail to remove the Connection header from a request
like this:
Connection:...
58757cb5c2767c615f5a36b477316cd356ba7707 authored over 3 years ago by Filippo Valsorda <[email protected]>
If a filepath.WalkFunc returns filepath.SkipDir when invoked on a
non-directory file, it skips t...
If the client request never makes it to the server, the outstanding
accept is never broken. Chan...
Change-Id: Id991d8e81e04835cabfb02d07a2199bfb553726c
GitHub-Last-Rev: 5d0b55d49127a2e2ba3148d20a...
Change-Id: I398aff06bec95077bfff02bfb067aa949b70c184
Reviewed-on: https://go-review.googlesource...
The current implementation uses UTF-aware functions
like strings.EqualFold and strings.ToLower.
...
Fixes #45789
Change-Id: Id588f5dbbecf5fbfb54e957c53903aaa900171f2
Reviewed-on: https://go-revie...
The Go 1.17 freeze has begun. This is a time to update all
golang.org/x/... module versions tha...
If the cleaned path did not match the requested path, ServeMux.Handler
would return a Location h...
There was a race condition that could lead to child.serveRequest
removing the request ID before ...
Close #43624
Change-Id: Ifaea3d8ec2aeabbd923abf5edd7497172dbf855a
GitHub-Last-Rev: ea3ef953a1db...
Fixes #45513
Change-Id: I59e717a4bbd3e71320deff519e4f9587ee5c8756
Reviewed-on: https://go-revie...