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

chore: update examples dependencies (#54)

See https://github.com/ooni/probe/issues/2556

00428666b7b91f62d63c265d3b264ee59d618276 authored 11 months ago by Simone Basso <[email protected]>
chore: update examples dependencies

111e569f08cadf8ed2ca349cb337589ec8b41a6b authored 11 months ago by Simone Basso <[email protected]>
chore: sync with go1.20.12 (#53)

See https://github.com/ooni/probe/issues/2556

9d04ea6ae2dd1b3c567f879ca642c995e1b38e6b authored 11 months ago by Simone Basso <[email protected]>
chore: update deps

3dc9ee1d24856cc400324fb73403cdb021f99688 authored 11 months ago by Simone Basso <[email protected]>
Merge branch 'golang-http-upstream' into merged-main

90ac5cd5f3d5df0380452c9ff2f82342772518b2 authored 11 months ago by Simone Basso <[email protected]>
chore: prepare for merging go1.20.12

See https://github.com/ooni/probe/issues/2556

2f48a342f3aa6939867f67ba259008d46074a16b authored 11 months ago by Simone Basso <[email protected]>
[release-branch.go1.20] net/http: limit chunked data overhead

The chunked transfer encoding adds some overhead to
the content transferred. When writing one by...

c9ccc24ac24c11d4eb713eb15e7c2aa9caa8ff1c authored 11 months ago by Damien Neil <[email protected]>
Merge pull request #52 from ooni/dependabot/go_modules/example/golang.org/x/net-0.17.0

chore(deps): bump golang.org/x/net from 0.15.0 to 0.17.0 in /example

d61b528499da5e38cae6f530489030fb3e9cf52b authored 12 months ago by Simone Basso <[email protected]>
chore(deps): bump golang.org/x/net from 0.15.0 to 0.17.0 in /example

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.15.0 to 0.17.0.
- [Commits](https...

de1f1938d03f773184c3efd0eff80339250ff47f authored 12 months ago by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Merge pull request #50 from nazzrrg/main

Replace http.NoBody with oohttp.NoBody in adapter

221fe7590a451eee0a57aa760157686551683b57 authored 12 months ago by Simone Basso <[email protected]>
Merge pull request #51 from ooni/merged-main

chore: sync up with go1.20.11

e944bc283d2ebc8387377f590abd4629a5254cbf authored 12 months ago by Simone Basso <[email protected]>
chore: go get -u -v ./... && go mod tidy

9fb1889289971167e2a4a2f7d4b126ca7daab90d authored 12 months ago by Simone Basso <[email protected]>
doc(README.md): clarify the merge procedure

e0d3dba531c83c07e14cf470f7cdf7b1eec3da1a authored 12 months ago by Simone Basso <[email protected]>
chore: sync safefilepath with go1.20.11

c1a446f4d3472166f27439e83f45efd01569f5ea authored 12 months ago by Simone Basso <[email protected]>
Merge branch 'golang-http-upstream' into merged-main

6ce10045f50d8c78a476b3fa573863de5765e2bd authored 12 months ago by Simone Basso <[email protected]>
chore: prepare for merging with go1.20.11

b5f9a4c477be6a6faca462aadb94a5f39f8be56c authored 12 months ago by Simone Basso <[email protected]>
fix: replace http.NoBody with oohttp.NoBody

1cdbbeec9e67ee9e0fcb19cb3b68872f20e90bcd authored 12 months ago by Egor Nazarov <[email protected]>
[release-branch.go1.20] net/http: pull http2 underflow fix from x/net/http2

After CL 534295 was merged to fix a CVE it introduced
an underflow when we try to decrement sc.c...

b2b907f796c917ddbe0fa9b7173632a60dc093ed authored about 1 year ago by Mauri de Souza Meneguzzo <[email protected]>
chore: update to go1.20.10 (#49)

Part of https://github.com/ooni/probe/issues/2524

7b3c08cc97e8aa8ad69841e3f8d2212b34c39453 authored about 1 year ago by Simone Basso <[email protected]>
Merge branch 'golang-http-upstream' into merged-main

a8f3a80ab49057d39fb725f88a21a39cc1fd9dc5 authored about 1 year ago by Simone Basso <[email protected]>
chore: prepare for merging with go1.20.10

Part of https://github.com/ooni/probe/issues/2524

482971896f61e892e185aeb543e3525e3a31ca6e authored about 1 year ago by Simone Basso <[email protected]>
[release-branch.go1.20] net/http: regenerate h2_bundle.go

Pull in a security fix from x/net/http2:
http2: limit maximum handler goroutines to MaxConcurren...

a93df1424bc8e1e02bae3604046dc3476d9958a0 authored about 1 year ago by Damien Neil <[email protected]>
Merge pull request #48 from ooni/issue/2524

chore: update examples to use go1.20.8

90bd6edcbe77a6300b88f6665137ef742c7781d4 authored about 1 year ago by Simone Basso <[email protected]>
chore: update examples to use go1.20.8

Part of https://github.com/ooni/probe/issues/2524

d5bed0526d7ea2f2ae8958594efb4e9408b3ac69 authored about 1 year ago by Simone Basso <[email protected]>
chore: update to go1.20.8 (#47)

Part of https://github.com/ooni/probe/issues/2524

dbb36a679659293fbcee0406c98e84acd526f7a3 authored about 1 year ago by Simone Basso <[email protected]>
chore: go get -u -v ./... && go mod tidy

56b9280cbc6dd11a77ae600c2638662d1940437e authored about 1 year ago by Simone Basso <[email protected]>
chore: encourage to make the check-list explicit

14f08bd57a2aabf4b6d5d0baee79227d665b2f54 authored about 1 year ago by Simone Basso <[email protected]>
Merge branch 'golang-http-upstream' into merged-main

184610b66ecceb9892e00bbf7e6488b7d6166536 authored about 1 year ago by Simone Basso <[email protected]>
chore: prepare syncing with go1.20.8

See https://github.com/ooni/probe/issues/2524

926efc6dec962f9eca1178a306f6e584c2b3ac76 authored about 1 year ago by Simone Basso <[email protected]>
[release-branch.go1.20] net/http: permit requests with invalid Host headers

Historically, the Transport has silently truncated invalid
Host headers at the first '/' or ' ' ...

631fbc049666353d74a21a8af80913add7aa42e4 authored about 1 year ago by Damien Neil <[email protected]>
Merge pull request #45 from ooni/submodules

chore: use [email protected] in submodules

a23fe435f2c7bdaf9ccea1d272aed0b378da4d93 authored over 1 year ago by Simone Basso <[email protected]>
chore: use [email protected] in submodules

Part of https://github.com/ooni/probe/issues/2503

c3182ce4845dfe33fbc14ca1151e2e8b50291048 authored over 1 year ago by Simone Basso <[email protected]>
Merge pull request #44 from ooni/submodules

chore: upgrade submodules and CI's go version

Part of https://github.com/ooni/probe/issues/2503

b983cc78714571f0c75ef4d2b014c6d07dcdb639 authored over 1 year ago by Simone Basso <[email protected]>
chore: upgrade submodules and CI's go version

Part of https://github.com/ooni/probe/issues/2503

57e40d6ac91940689073e5af1bc6f9789e0e160d authored over 1 year ago by Simone Basso <[email protected]>
Merge pull request #43 from ooni/merged-main

chore: update to go1.20.6

Part of https://github.com/ooni/probe/issues/2503

da0547fca764bae7981c903fd77bd5c710051385 authored over 1 year ago by Simone Basso <[email protected]>
Merge branch 'go1.20.6' into merged-main

Conflicts:
http_test.go
request.go

a2e27a9fdc90d68130705f7820138e19658db809 authored over 1 year ago by Simone Basso <[email protected]>
chore: prepare for merging go1.20.6

See https://github.com/ooni/probe/issues/2503

bde8728afabf332783e8e7f826d7e24c4c4faa18 authored over 1 year ago by Simone Basso <[email protected]>
[release-branch.go1.20] net/http: validate Host header before sending

Verify that the Host header we send is valid.
Avoids surprising behavior such as a Host of "go.d...

e5b8f0b47cdfb7c4dfc17c2704d96c6280f261ec authored over 1 year ago by Damien Neil <[email protected]>
chore: prepare for merging go1.20.5

bebf83bddd3e15c9e92e1a8d2e3f52cfebd89ee1 authored over 1 year ago by Simone Basso <[email protected]>
Merge pull request #41 from ooni/submodules

chore: update submodules

Part of https://github.com/ooni/probe/issues/2417 and https://github...

ac21a30f468880a6fa4e8f209726e8609da6f17f authored over 1 year ago by Simone Basso <[email protected]>
chore: update submodules

ad5bdbf9026c7a135ee44ceb2773ef7c57a817c9 authored over 1 year ago by Simone Basso <[email protected]>
feat: use go1.20.4 (#40)

See https://github.com/ooni/probe/issues/2417 and https://github.com/ooni/probe/issues/2478.

4a8e776190c109c933f00ae78517e31327038c88 authored over 1 year ago by Simone Basso <[email protected]>
chore: update go.mod go.sum

29a36ef193ad63d941b00a24a59d7fe64845d1c0 authored over 1 year ago by Simone Basso <[email protected]>
Merge go1.20.4

Conflicts:
fs_test.go
header_test.go
httputil/reverseproxy.go
httputil/reverseproxy_test.go
...

d1a23ab707b275e7ce66554465052d3da3489428 authored over 1 year ago by Simone Basso <[email protected]>
chore: prepare for merging go1.20.4

7c3f4af76d1e0686e40fa7ec79432e8e402b5662 authored over 1 year ago by Simone Basso <[email protected]>
[release-branch.go1.20] Revert "net/http: FileServer method check + minimal OPTIONS implementation"

This reverts https://go.dev/cl/413554

Reason for revert: Backwards-incompatible change in behav...

e6bd250ee05e46553b7f68060e6559a764661e97 authored over 1 year ago by Damien Neil <[email protected]>
feat: update to go1.19.6 (#39)

628246ddc0180529a0ae46985a59914adcd2e78f authored over 1 year ago by Simone Basso <[email protected]>
Merge branch 'golang-http-upstream' into merged-main

2b170fd1f4e2e6968383c43c06637d91fff7bc9d authored over 1 year ago by Simone Basso <[email protected]>
feat: prepare for merging go1.19.6

d6e88306a9f097ae6639976ed2d8a337c3858b8f authored over 1 year ago by Simone Basso <[email protected]>
[release-branch.go1.19] mime/multipart: limit memory/inode consumption of ReadForm

Reader.ReadForm is documented as storing "up to maxMemory bytes + 10MB"
in memory. Parsed forms ...

3f06adadf7b47fbfd092e4b5ce223f352e523d8c authored over 1 year ago by Damien Neil <[email protected]>
[release-branch.go1.20] mime/multipart: limit memory/inode consumption of ReadForm

Reader.ReadForm is documented as storing "up to maxMemory bytes + 10MB"
in memory. Parsed forms ...

c8c7587dfc96ce0b6ce68f649535ddba12875366 authored over 1 year ago by Damien Neil <[email protected]>
[release-branch.go1.19] net/http: accept HEAD requests with a body

RFC 7231 permits HEAD requests to contain a body, although it does
state there are no defined se...

79015ae7d7707c3d1c0ea6419b865d56137d8de1 authored almost 2 years ago by Damien Neil <[email protected]>
Merge pull request #38 from ooni/merged-main

chore: merge from go1.19.5

See https://github.com/ooni/probe/issues/2273

b6efd8c27c6436069e1552489e2db46acbb43769 authored almost 2 years ago by Simone Basso <[email protected]>
Merge branch 'golang-http-upstream' into merged-main

9ea238aac633d33f7212219b790c3c88dd4cded8 authored almost 2 years ago by Simone Basso <[email protected]>
chore: use go1.19.5

Part of https://github.com/ooni/probe/issues/2273

e50da8422ad9e2a5871889578f61627557636eb4 authored almost 2 years ago by Simone Basso <[email protected]>
Merge pull request #37 from ooni/update-to-go-1.19.4

Update to go 1.19.4

See https://github.com/ooni/probe/issues/2273

Here's the diff with the...

fc0319dff6a227e01cd98b20b51141ea0f66324d authored almost 2 years ago by Simone Basso <[email protected]>
feat: better tools to merge and compare with upstream

With these scripts, we have greater confidence in the process.

6a3dfeb8cb3c8bca854f611f023288b0294f616f authored almost 2 years ago by Simone Basso <[email protected]>
fix(README.md): mention the NetConn method

e3fccf14d39af58d095a07403e8892479812d16f authored almost 2 years ago by Simone Basso <[email protected]>
fix(README.md): avoid unnecessary changes

0d4a3c878511e46d2586006fa693395600c95688 authored almost 2 years ago by Simone Basso <[email protected]>
fix: reduce diff with respect to the dev branch

82e690c0b5e0dec6895e822284a270b59cbb2337 authored almost 2 years ago by Simone Basso <[email protected]>
Merge branch 'dev' into update-to-go-1.19.4

This commit makes main use go1.19.4.

Conflicts:
README.md

a4317d5c20182c5e7cfd367b4de39f3728a1addc authored almost 2 years ago by Simone Basso <[email protected]>
Merge pull request #36 from ooni/merged-dev

chore: update to go1.19.4

2125b6b68f4cc5498a3871c2dd258c6e43437e2f authored almost 2 years ago by Simone Basso <[email protected]>
chore: add instructions to update to go1.19.4

28b5a761928ea84836ba30869b75ea6fae44d519 authored almost 2 years ago by Simone Basso <[email protected]>
Merge tag 'go1.19.4' into merged-dev

be4342cf92a59df9f3c0c2f1d0d1f05c0a62b371 authored almost 2 years ago by Simone Basso <[email protected]>
chore(example): use oohttp v0.4.0

9191fe39c95ba0b453d5b98658661a125d1e0a3e authored almost 2 years ago by Simone Basso <[email protected]>
doc: make sure we provide accurate information

Part of https://github.com/ooni/probe/issues/2273

191392447822df7103aee16f9451a214b4122ad7 authored almost 2 years ago by Simone Basso <[email protected]>
Merge pull request #35 from ooni/attempt-merge-stable

chore: merge stable into main

We currently have two branches and two release trains. However,...

854a2b3e71c5e004ddd89a2924b259ec7b7f328c authored almost 2 years ago by Simone Basso <[email protected]>
fix: reduce diff with stable virtually to zero

This is now the diff between this branch and stable:

```diff
diff --git a/.github/workflows/go....

899c58aee5c15aa67b06581a1a9de57147f6d655 authored almost 2 years ago by Simone Basso <[email protected]>
fix: adapt update instructions to main

4b5a9f4c081e29cea1a4473f300b5d35f67f7e38 authored almost 2 years ago by Simone Basso <[email protected]>
fix: we don't need to test stable anymore

506864b6fdd994f9807751c025769551215ee503 authored almost 2 years ago by Simone Basso <[email protected]>
Merge branch 'stable' into attempt-merge-stable

Conflicts:
example/example-proxy/go.mod
example/example-proxy/go.sum
example/example-proxy/tl...

f1213c9901a8a472db837c491ac427696ba3842b authored almost 2 years ago by Simone Basso <[email protected]>
feat: implement better integration tests (#34)

There's a need to write better integration tests for this repository.

In particular:

1. we...

6a399fd16ddddc6beb067977ef72f81507b5120a authored almost 2 years ago by Simone Basso <[email protected]>
chore: update dependencies

c53072aa1593af96f4bdd68a5c96971e1b7b37b8 authored almost 2 years ago by Simone Basso <[email protected]>
Merge pull request #33 from ooni/merged-stable

chore: update to go1.18.9

21ed541498ccf66f8a4de59d81c49cf93bf6b80d authored almost 2 years ago by Simone Basso <[email protected]>
fix: make sure safefilepath builds and WAI

b3ed2dd74bb9ea24ae00b1725e72c6d4c1ac65ba authored almost 2 years ago by Simone Basso <[email protected]>
chore: add unmodified safefilepath from go1.18.9

0cc97b5834b6bca22542cebcea51549307f643d2 authored almost 2 years ago by Simone Basso <[email protected]>
chore: update merge instructions for go1.18.9

0744d8744aa321ab2bf944f38819c34b337ef3ff authored almost 2 years ago by Simone Basso <[email protected]>
Merge branch 'golang-http-upstream' into merged-stable

62d0c3fcea2993ee18c71f83c11c11711e97783c authored almost 2 years ago by Simone Basso <[email protected]>
net/http/httputil: don't add X-Forwarded-{Host,Proto} after invoking Director funcs

This reverts CL 407414.

When forwarding an inbound request that contains an existing
X-Forwarde...

03a0ce60ace15194f1a5da80e79e91fcc34b2962 authored almost 2 years ago by Damien Neil <[email protected]>
[release-branch.go1.19] all: upgrade golang.org/x/net to v0.0.0-20221214163817-183621ab9c4e

Update x/net to include the fix for #53960.

For #53960
For #56154

Change-Id: Ib3e0d66e4125601e...

4c75813ebec5a55c8294188576fc516bfbf4e44b authored almost 2 years ago by Damien Neil <[email protected]>
net/http: improve errors in TestCancelRequestWhenSharingConnection

Provide more information about why this test might be hanging waiting
for PutIdleConn to be call...

e2f882787cc9b90a5e38b0e9cd83b6366015c528 authored almost 2 years ago by Damien Neil <[email protected]>
all: update vendored golang.org/x/net

Pull in HTTP/2 security fix:

1e63c2f08a http2: limit canonical header cache by bytes, not entr...

bcb17db9179e1fe55315afaa3c7469b00f675048 authored almost 2 years ago by Damien Neil <[email protected]>
os, net/http: avoid escapes from os.DirFS and http.Dir on Windows

Do not permit access to Windows reserved device names (NUL, COM1, etc.)
via os.DirFS and http.Di...

4d16e794b086dbaf33427e823ff81a7cbf688f80 authored almost 2 years ago by Damien Neil <[email protected]>
[release-branch.go1.19] net/http: update bundled golang.org/x/net/http2

Disable cmd/internal/moddeps test, since this update includes PRIVATE
track fixes.

For #56350.
...

f132148efb20c5c178e26df66fe5cfd4266edd44 authored almost 2 years ago by Damien Neil <[email protected]>
[release-branch.go1.19] os, net/http: avoid escapes from os.DirFS and http.Dir on Windows

Do not permit access to Windows reserved device names (NUL, COM1, etc.)
via os.DirFS and http.Di...

e8521f0a18c5de164213f1dd868675502609524a authored almost 2 years ago by Damien Neil <[email protected]>
[release-branch.go1.18] net/http: update bundled golang.org/x/net/http2

Disable cmd/internal/moddeps test, since this update includes PRIVATE
track fixes.

For #56350
F...

8a9043a81e126f44f946088e2f84b488572be4e6 authored almost 2 years ago by Damien Neil <[email protected]>
[release-branch.go1.18] os, net/http: avoid escapes from os.DirFS and http.Dir on Windows

Do not permit access to Windows reserved device names (NUL, COM1, etc.)
via os.DirFS and http.Di...

7a72af879a512587929b22345730b4c809a9d71c authored almost 2 years ago by Damien Neil <[email protected]>
net/http: deflake and fix TestWrappedResponseController

Read the full (empty) response body before closing it,
to avoid cancelling the request while the...

9404998fec8e9c87e26221aee3532ddd161eeaf6 authored almost 2 years ago by Damien Neil <[email protected]>
all: enable disabled HTTP/2 tests

Update net/http to enable tests that pass with the latest update
to the vendored x/net.

Update ...

c1943d869473b7c11900ec1ece0edbb697154b08 authored almost 2 years ago by Damien Neil <[email protected]>
Revert "net/url, net/http/httputil: accept invalid percent encodings"

This reverts CL 450375.

Reason for revert: This change causes test failures (and possibly other...

3163fb73f10038d500f8ce0653fde91b02af9e2a authored almost 2 years ago by Damien Neil <[email protected]>
all: update vendored golang.org/x dependencies for Go 1.20 release

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

7775234b044ab6569c52bac5b8140cda0a233ed0 authored almost 2 years ago by Cherry Mui <[email protected]>
net/http: deflake TestIssue4191_InfiniteGetTimeout

This test exercises the case where a net.Conn error occurs while
writing a response body. It inj...

507717175a325fa91d71ddab39c1f3553219c0a4 authored almost 2 years ago by Damien Neil <[email protected]>
net/http: direct server logs to test output in tests

Set a logger in newClientServerTest that directs the server
log output to the testing.T's log, s...

bffcb8cbd43733d475f47112cc8fa1cfd9fddec2 authored almost 2 years ago by Damien Neil <[email protected]>
net/http: regenerate h2_bundle.go

Done with:

go generate -run=bundle std

After CL 452096 updated the x/net version.

Change-Id:...

82854a37d7143b609a5d147c8f3d33f43e48afb4 authored almost 2 years ago by Dmitri Shuralyov <[email protected]>
crypto/tls: add CertificateVerificationError to tls handshake

Fixes #48152

Change-Id: I503f088edeb5574fd5eb5905bff7c3c23b2bc8fc
GitHub-Last-Rev: 2b0e982f3f6b...

04c95a7383054c9224f6806d64371d2f561cf987 authored almost 2 years ago by Gabor Tanz <[email protected]>
all: add missing periods in comments

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

9d828abf1c4a379d8c810cec05265b2a7254cd9e authored almost 2 years ago by cui fliter <[email protected]>
net/http: deflake TestResponseControllerSetFutureWriteDeadline

Don't set the server's write deadline until after the client has
read the response headers, avoi...

bf859747815a230cf8c5d533b961bbfb353d68ac authored almost 2 years ago by Damien Neil <[email protected]>
net/url, net/http/httputil: accept invalid percent encodings

Per https://url.spec.whatwg.org/#percent-encoded-bytes an invalid
percent encoding should be han...

619fdf4437100c8a10c14f6b26e7cf3f55839f24 authored almost 2 years ago by Ian Lance Taylor <[email protected]>
internal/godebug: define more efficient API

We have been expanding our use of GODEBUG for compatibility,
and the current implementation forc...

04c980695d2f445ff12c0593c67d09ce9f6dd464 authored almost 2 years ago by Russ Cox <[email protected]>
net/http: fix triv.go

CL 428137 replaced 'buf := make(bytes.Buffer)' with 'var buf strings.Builder'.
That change also ...

f2c69f591893739a056cff980f9180a4448a954e authored almost 2 years ago by Russ Cox <[email protected]>