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 #16003
Change-Id: I76a8da24b9944647ec40ef2ca4fc93c175ff5a25
Reviewed-on: https://go-revie...
Updates #10767
Change-Id: I197535f71bc2dc45e783f38d8031aa717d50fd80
Reviewed-on: https://go-rev...
Only ASCII is permitted there.
Fixes #4385
Change-Id: I63708b04a041cdada0fdfc1f2308fcb66889a27...
dd071c80920aee97c6f1f09777052656896ccb13 authored over 8 years agoUpdates http2 to x/net/http2 git rev 40a0a18 for:
http2: fix Server race with concurrent Re...
2aa19966aef1562733934e774189f9053b8bca43 authored over 8 years agoThe old wording over-promised.
Fixes #16957
Change-Id: Iaac04de0d24eb17a0db66beeeab9de70d0f6d3...
b2b0860d0eae20730a876e1ffab8570f11b74b34 authored over 8 years agoThis issue has been fixed in CL 31390.
Fixes #9554.
Change-Id: Ib8ff4cb1ffcb7cdbf117510b98b4a7...
4cf0602b0f6907d82fb9e56e1f39191f7d20f091 authored over 8 years agoFixes #16965
Change-Id: I3638fe280a5b1063ff589e6e1ff8a97c74b77c66
Reviewed-on: https://go-revie...
This CL makes NewRequest set Body nil for known-zero bodies, and makes
the http1 Transport not p...
The way to send an explicitly-zero Content-Length is to set a nil Body.
Fix this test to do tha...
03611c5e67a9e0e3536409da06f10670d6a68636 authored over 8 years agoFixes #17355
Change-Id: I5390979cd0081b61a639466377faa46b4221b74a
Reviewed-on: https://go-revie...
This issue has been fixed in CL 31390.
Fixes #15464.
Change-Id: I35e088f37bf3b544100ff131c7269...
46de40fbb0c8b551d5fec672f5e59da9c5232e93 authored over 8 years agoThis issue has been fixed in CL 31390.
Fixes #11476.
Change-Id: I6658bda2e494d3239d62c49d0bd5d...
023f014ac950aed9d122668ace1a1033748b4e86 authored over 8 years agoThis CL changes how the http1 Server reads from the client.
The goal of this change is to make ...
9d69600470f78c63f5bb0f88dae3b67adb0b05fa authored over 8 years ago
Referencing RFC 7230 Section 3.3.2, this CL
deduplicates multiple identical Content-Length heade...
Updates #16456
Change-Id: Ifea651ea3ece2267a6f0c1638181d6ddd9248a9f
Reviewed-on: https://go-rev...
Make a zero-byte write to a hijacked connection not log anything, so handlers
can test whether a...
- precalculate *Cookie slice in read cookie functions
- readSetCookies: pre-allocs depending on ...
Change-Id: I5b04ba7e12eff933fc67eb7a1cbdfde536e4db88
Reviewed-on: https://go-review.googlesource...
Renamed TestPOSTQuery to TestParseFormQuery and added testing
for the ";" delimiter, an empty ke...
This reverts commit 59320c396e6448132a52cb5a5d96491eee1e0ad8.
Reasons:
This CL was causing fail...
Remove the use of io.ReadAll in http.parsePostForm to avoid converting
the whole input from []by...
I avoided anywhere in the compiler or things which might be used by
the compiler in the future, ...
Also, update bundled http2 to x/net git rev 0d8126f to include
https://golang.org/cl/30150, the ...
Code movement only, to look more like the equivalent http2 code, and
to make an upcoming fix loo...
Updates bundled http2 to x/net git rev a333c53 for:
http2: add Transport support for IdleCon...
d764e691a6285d32992b81b9b3a7687a7622a0d5 authored over 8 years agoI decided not to expand the API for this per discusion on #16220.
Fixes #16220
Change-Id: I65c...
e1fcb48bbf52a5f9e3fc09d79fe636a1dba67507 authored over 8 years ago
Fix an old TODO and use atomic.Value for holding the Transport's
alternate protocol map. It is v...
RFC 6265, section 4.2.2 says:
<<<
Although cookies are serialized linearly in the Cookie header,...
It wasn't lowercasing the string, folding widths, and putting strings
into NFC form. Do those.
...
a9e3bd39dae7a42014828c2a63ff728aefa48bd2 authored over 8 years ago
Updates #13994
Updates #16840
Change-Id: Ia3cad5c211e0c688a945ed6b6277c2552592774c
Reviewed-on:...
To prevent slice growths with append operations.
Change-Id: Icdb745b23cc44dfaf3e16746b94c06997f...
3f2ce1c7003b47ab9ce34cd58de4bdecdbf73a3c authored over 8 years ago
This sentence is partially guilty why httptrace is considered as an
http.Client tracing package....
This change modifies URL.String to prepend "./" to a relative URL which
contains a colon in the ...
This change fills the ContentLength field in the http.Response returned by
ResponseRecorder.Resu...
Change-Id: I6ea8650927e7946c6fd4659f400fd91ddaae68af
Reviewed-on: https://go-review.googlesource...
Tracing happens at the http.Trace level. Fix the example to demostrate
tracing in the lifecycle ...
Change-Id: Ie1b08215c02ce3ec72a4752f4b800f23345ff99d
Reviewed-on: https://go-review.googlesource...
While you could argue the previous wording technically said that -1 is
an acceptable way to indi...
This CL makes code like this work:
res, err := http.Get("https://фу.бар/баз")
So far, IDN...
fcc33abc6926e65e28fede9557cf3107f4e9ee2e authored over 8 years agoUpdates x/net/http2 (and x/net/lex/httplex) to git rev 749a502 for:
http2: don't sniff first...
4b7b5f5fbf2d74d10b44dbc882cf7159431c07cb authored over 8 years agoFixes #16732
Change-Id: If0a7f9425cf75b9e31b3091c43cb23d6e039f568
Reviewed-on: https://go-revie...
Copy all of the original request's headers on redirect, unless they're
sensitive. Only send sens...
Fixes #16884
Updates #16360
Change-Id: I01563031a1c105e54499134eed4789f6219f41ec
Reviewed-on: h...
Hop-by-hop headers (explicitly mentioned in RFC 2616) were already
removed from the response. Th...
We were already making a copy of the map before removing
hop-by-hop headers. This commit does th...
Found by vet.
Change-Id: I09b79d68c7a5fc97e0edda4700a82bfbb00a4f45
Reviewed-on: https://go-revi...
The http.Transport's retry can't retry requests with non-nil
bodies. When cloning an incoming se...
RFC 2616, section 14.10 says:
>>>
HTTP/1.1 proxies MUST parse the Connection header field befor...
Per RFC 7230, Section 3.3.2: "A server MUST NOT send a Content-Length
header field in any respon...
In Go 1.0, the Config struct consisted only of exported fields.
In Go 1.1, it started to grow p...
c9d4e176901c020e41d4bf38e59dd0a91ffca0fa authored over 8 years ago
As @pmarks-net said in the bug, this is something of a prisoner's
dilemma, but it does help peop...
This change makes sure that tests are run with the correct
version of the go tool. The correct ...
Ordering fix: this CL swaps the order of the log write and the channel close
in WroteRequest. I ...
Change-Id: I84faeae69f294b9a70e545faac6a070feba67770
Reviewed-on: https://go-review.googlesource...
Updates #14595
Change-Id: Idf60b3004c7a0ebb59dd48389ab62c854069e09f
Reviewed-on: https://go-rev...
Add support for writing TLS client random and master secret
in NSS key log format.
https://deve...
81fc947da7ba953401532310afd1a53f7b51b570 authored over 8 years agoUpdates #11041
Change-Id: Ia0151723e3bc0d163cc687a02bfc5e0285d95ffa
Reviewed-on: https://go-rev...
RFC 7233, section 4.4 says:
>>>
For byte ranges, failing to overlap the current extent means tha...
This permits the error message to distinguish between a context that was
canceled and a context ...
example for httptest.Recorder was inspecting Recoder directly.
Using Result() to convert Recorde...
The old deprecation docs were referencing another deprecated field.
Fixes #16752
Change-Id: I4...
bb173b3fbcb3625f4c07ecbf1b689c6dd727fa80 authored over 8 years agoPartially addresses #16360
Change-Id: I67a328302d7d91231f348d934e4232fcb844830a
Reviewed-on: ht...
Go 1.7 crashed after Transport.IdleConnTimeout if an HTTP/2 connection
was established but but i...
Updates bundled http2 to x/net/http2 git rev 7394c11 for:
http2: fix protocol violation regress...
9c5722c06381fcf936443ae3f071bc323aab298a authored over 8 years ago
Certain browsers (Chrome 53, Safari 9.1.2, Firefox 46) won't correctly
follow a directory listin...
Change-Id: I95cae14bb5561947ada9577fb05053f93321a4a8
Reviewed-on: https://go-review.googlesource...
Makes vet happy.
Updates #11041
Change-Id: I23ca413c03ff387359440af8114786cd7880a048
Reviewed-...
If the server failed on us before we even tried to write any bytes,
it's safe to retry the reque...
Let the kernel pick a port for testing, and have the server in the
child process tell the parent...
The Go HTTP/1 client will make as many new TCP connections as the user requests.
The HTTP/2 cli...
cb569a4af9b1bbb4d227462ffa8027c7b92bfa26 authored over 8 years agoUpdates bundled http2 to x/net/http2 git rev 075e191 for:
http2: adjust flow control on open...
f11aea8bbcb2bc768032affeff6d31455b4cf513 authored over 8 years agoChange-Id: Ifb9647fa9817ed57aa4835a35a05020aba00a24e
ec680f135821b802348744ba97535cdf1793a071 authored over 8 years agoUpdates bundled http2 to x/net/http2 rev 28d1bd4f for:
http2: make Transport work around mo...
3ace5bdcf31ad0a3d127b64f87ddb5ce82aed55d authored over 8 years agoFixes #16505
Change-Id: I0afabcc8b1be3a5dbee59946b0c44d4c00a28d71
Reviewed-on: https://go-revie...
Updates x/net/http2 to git rev 6a513af for:
http2: return flow control for closed streams
h...
From at least Go 1.4 to Go 1.6, Transport.RoundTrip would return the
error value from net.Conn.R...
Noticed when investigating a separate issue.
No external bug report or repro yet.
Change-Id: I...
3384ed7fed8301d28702520da1d24afd574808f0 authored over 8 years agoChange-Id: I2511c3f7583887b641c9b3694aae54789fbc5342
5d3c0d86e0a03792c7cb73857a615d8e20f0b0c6 authored over 8 years agoBecause,
* The CGI spec defines that incoming request header "Foo: Bar" maps to
environment v...
Because,
* The CGI spec defines that incoming request header "Foo: Bar" maps to
environment v...
Regression from Go 1.6 to Go 1.7rc1: we had broken the ability for
users to vendor "golang.org/x...
Updates #16230
Change-Id: Ie38f85419c41c00108f8843960280428a39789b5
Reviewed-on: https://go-rev...
The test was checking for 1 of 2 possible error values. But based on
goroutine scheduling and th...
Updates x/net/http2 to git rev b400c2e for https://golang.org/cl/24214,
"http2: add additional b...
Updates x/net/http2 to git rev 8e573f40 for https://golang.org/cl/24600,
"http2: merge multiple ...
There was only one use of "HTTP/1.n" compared to "HTTP/1.x":
h2_bundle.go:// "Just as in HTTP...
5ff747699fce5ae4d56844138927844379f670d8 authored over 8 years ago
Updates x/net/http2 to git rev ef2e00e88 for https://golang.org/cl/24560,
"http2: make Transport...
Don't configure HTTP/2 in http.Server.Serve(net.Listener) if the
Server's TLSConfig is set and d...
The version of pprof in gperftools has been deprecated.
No need to have a pointer to that versio...
Change ExampleResponseRecorder to use httptest.NewRequest instead of
http.NewRequest. This makes...
Fixes #16197
Change-Id: Icaabacbb22bc18c52b9e04b47385ac5325fcccd1
Reviewed-on: https://go-revie...
Fixes #16063
Change-Id: I2e8695beb657b0aef067e83f086828d8857787ed
Reviewed-on: https://go-revie...
Updates x/net/http2 to git rev 313cf39 for CLs 23812 and 23880:
http2: GotFirstResponseByte ho...
c0cd54fe1fe939a6de5c81a3430eabebb30525fa authored over 8 years agoFixes #15948
Change-Id: Idd79859b3e98d61cd4e3ef9caa5d3b2524fd026a
Reviewed-on: https://go-revie...
Fixes #15960
Change-Id: I7503f6ede33e6a1a93cee811d40f7b297edf47bc
Reviewed-on: https://go-revie...
The comment on http.Request.Context says that the context
is canceled when the client's connecti...
Updates x/net/http2 to git rev 6bdd4be4 for CL 23526:
http2: GotFirstResponseByte hook should...
a7beefc86c15c90b8baa4f151c1efe993a4f135c authored over 8 years agoFixes #15868
Change-Id: I4e4471e77091309c4ea1d546b2c4f20dfbb4314e
Reviewed-on: https://go-revie...
Change-Id: I6dc3666398b4cd7a7195bb9c0e321fa8b733fa15
Reviewed-on: https://go-review.googlesource...
New in Go 1.7 so still possible to change.
This allows implementations not tied to *net.Dialer.
...