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
- Documented the duration parameter in Profile() to match with Trace().
- Properly handling the...
8f37156e6a4ae3dd5845ac3b4d6de11a9c6f27b9 authored over 6 years agoUpdates x/net to git rev cbb82b59bc for:
lex/httplex, http/httpguts: merge the httplex pack...
0f933894c79f976d6dd3df094cbad971d346267a authored over 6 years agoUpdates http2 to x/net/http2 git rev 5f9ae10 for:
http2: terminate await request cancel gor...
a85d152d827d2c2dafe61263dc99563d3ac86a60 authored almost 7 years ago
RFC 2617, Section 1.2: "It uses an extensible, case-insensitive
token to identify the authentica...
This is a followup to CL 110296. That change added a new behavior
to Redirect, where the short H...
Fixes #25166
Change-Id: Id1fe18899579365519ac08ebedf74cd23c0fbd9f
Reviewed-on: https://go-revie...
Change-Id: I954ca86c142e81c03ec867d10997617d1643b35d
GitHub-Last-Rev: 4ffcc780f16f20ad3a531638d4...
Fixes #24831
Change-Id: Icd39093d1b7d9b25aa8374c0298cdb1dea48e672
Reviewed-on: https://go-revie...
Use the vendored ValidTrailerHeader function from x/net/http/httpguts to
check Trailer headers a...
This changes rawResponse to install a logger before
Serve()ing and makes the log output availabl...
Fixes #24812
Change-Id: If8d496d61b1120233e44c72d854e80cb06bab970
Reviewed-on: https://go-revie...
Move the test skip to use testenv.SkipFlaky and link to the Go issue.
Update #24826
Change-Id:...
071fc2996ddf061b3b209d1f72982b67aa3d6ece authored almost 7 years ago
TestServerDuplicateBackgroundRead has been causing crashes on the
netbsd-arm-bsiegert builder, w...
The docs for ResponseWriter.Write say
// If the Header
// does not contain a Content-Type line, ...
Change-Id: Ibb793158a190758cebc00b58c12e3b8b106c0548
GitHub-Last-Rev: 6a6d949eb252ec6d3e76920fc2...
This change replaces the vendored socks client implementation with the
bundle of golang.org/x/ne...
The go/printer (and thus gofmt) uses a heuristic to determine
whether to break alignment between...
Fixes #23643.
Change-Id: I4f8195a36be817d79b9e7c61a5301f153b681493
Reviewed-on: https://go-revi...
Strip password from URL then stringifying it to error.
Fixes #24572
Change-Id: I1751ea9ccf87e7...
6027db5ed9a811dbecd3446c2907469d6ff9ec62 authored almost 7 years ago
Change-Id: I6f5a94cd8b6e8f7201202514ac0f9c78811c43bc
Reviewed-on: https://go-review.googlesource...
A very small number of old browsers consider content as HTML
even when it is explicitly stated i...
I grepped for "bytes.Buffer" and "buf.String" and mostly ignored test
files. I skipped a few on ...
RFC 8081 declares a top level font media type for all types of fonts.
Updating the mime types in...
Sniffing woff2 is now added to the spec -
https://github.com/whatwg/mimesniff/commit/e29b9f4a228...
VerifyHostname is called by tls.Conn during Handshake and does not need to be called explicitly....
def9080ca46336d3193f602f07b90c911a796c39 authored almost 7 years agoFixes #24297
Change-Id: I759e88655632fda97dced240b3f13392b2785d0a
Reviewed-on: https://go-revie...
Change-Id: I788972bdf85c0225397c0e74901bf9c33c6d30c7
GitHub-Last-Rev: 57737fe782bf7ad2d765c2efd8...
Since that method uses 'mux.m', we need to lock the mutex to avoid data races.
Change-Id: I9984...
f342e203d79219592f7f4cb010ae2c0aab0da0ee authored almost 7 years ago
There are a few places where the integer value is used.
Use the equivalent constants to aid with...
Fixes #23959
GitHub-Last-Rev: 08ce026f52f9fd65b49d99745dffed46a3951585
GitHub-Pull-Request: gol...
Replace references to the obsoleted RFC 2616 with references to RFC
7230 through 7235, to avoid ...
This test was sometimes timing out on the plan9/arm builder
(raspberry pi) when run in parallel ...
Fixes #23776
Change-Id: Iff03d8b295afc1fd9435694b10246c723d323eda
Reviewed-on: https://go-revie...
iana.org, www.iana.org and data.iana.org all present a valid TLS
certificate, so let's use it wh...
Fixes #23748
Change-Id: Iacdbd57c53492175cf1d3045640db61151e10731
Reviewed-on: https://go-revie...
Change-Id: I01900c3a2ebdda8c90d0585f179a39ee890c417f
Reviewed-on: https://go-review.googlesource...
Handlers can be registered for specific hosts by specifying the host as
part of the mux pattern....
The net/http Transport was testing for a sentinel x/net/http2 error
value with ==, which meant i...
This reverts commit https://golang.org/cl/54030
Reason for revert: to not paint ourselves into ...
0b69c61eb74d2d35db2cef8490d10234e14a6959 authored about 7 years agoUpdates #22018
Change-Id: I8a85324e9d53dd4d279ed05cdb93f50d55cf767b
Reviewed-on: https://go-rev...
Updates #19943
Change-Id: Iea249be51a7af3264bee9ee2b28dbd91043275fc
Reviewed-on: https://go-rev...
Also vendors x/net/http git rev 42fe2e1c for:
http2: don't check WriteHeader status if we'v...
9da903ab53ffb0dd6f2221740d076f0c46934dee authored about 7 years agoFixes #22554
Change-Id: I624f2883489a46d7162c11f489c2f0a0ec5a836f
Reviewed-on: https://go-revie...
The docs were too specific. Make it vaguer. There are conditions for
which the Transport will tr...
Modify the regex in TestLinuxSendfile to not match the parameters of
the syscall, just its name ...
Change-Id: I65209b90ed7c56d4c751b3e4b3ce1de52dae368c
Reviewed-on: https://go-review.googlesource...
I can reproduce with a very short timeout (fractions of a millisecond)
combined with -race.
But...
2b709dc635d8834af01b315d06cbf2bade39ba50 authored about 7 years ago
Change-Id: I5a38200b9e050b484ec39f47c637e651e237390d
Reviewed-on: https://go-review.googlesource...
Closes #23028
Change-Id: I469f1ab2dee9151334b38e0d3a22eb9840c8807b
Reviewed-on: https://go-revi...
Historically, DetectContentType has returned "text/plain; charset=utf-8"
for an empty body, ther...
Fixes #23002
Change-Id: I87e72833757497aff49117dd40629cb7ec49e6e7
Reviewed-on: https://go-revie...
Fixes #21724
Change-Id: I92571bf228781b17fdf012a2fb52a597c877cefe
Reviewed-on: https://go-revie...
Updates http2 to x/net git rev 894f8ed58 for:
http2: fix flake in net/http's TestCloseIdleC...
1d7317f8fabdd6ed5fb8654bed67c6b8bcf26abf authored about 7 years agoThis reverts commit 08f19bbde1b01227fdc2fa2d326e4029bb74dd96.
Reason for revert:
The changed tr...
Fixes #22873
Change-Id: Ib2b7ee42a23b84db21cdfa693b62d5e6fbfdb54e
Reviewed-on: https://go-revie...
Update http2 to x/net git rev db473f6b23.
(And un-skip TestWriteHeader0_h2 added in CL 80077, n...
c4bdfb1c2b3c2fc7608f37e4b2dea5c697e8e0b2 authored about 7 years agoPanic if an http Handler does:
rw.WriteHeader(0)
... or other invalid values. (for a forgi...
fb129f3f9e6b601d66fae03203e181696bbfb377 authored about 7 years ago
Previously, golang.org/cl/75350 updated ReadMIMEHeader to ignore the
first header line when it b...
Implement sniffing for fonts:
* MS Font object --> "application/vnd.ms-fontobject"
* ttf -->...
We set Content-Type to "text/plain; charset=utf-8" even with blank body
before. Let's strip this...
Previously when RoundTrip returned a non-nil error, the proxy returned a
StatusBadGateway error,...
Fixes #19579
Change-Id: Id99ca6de94d8d895dfaed1ed507e9d36c7f60670
Reviewed-on: https://go-revie...
Fixes #22658
Change-Id: I00e2b007d77b6f54798f7755d0b08e4fea824392
Reviewed-on: https://go-revie...
See CL 40291. ctx.Err() is defined to only return non-nil exactly
when ctx.Done() returns a clos...
A header line with leading whitespaces is not valid in HTTP as per
RFC7230. This change ignores ...
Change-Id: Id7f0d978ce5b0471a404d6e6673b789e7db04650
Reviewed-on: https://go-review.googlesource...
The godoc for RoundTrip already specifies when it's ok to reuse a
request that contains a body: ...
The existing implementation names a c net.Conn return which is
never user. Leaving the returns u...
Updates #22540
Change-Id: I63e8c4874f8a774e9c47affc856aadf8c35ca23b
Reviewed-on: https://go-rev...
Updates #22540
Change-Id: I26e79c25652976fac6f2e5a7afb4fd1240996d74
Reviewed-on: https://go-rev...
To improve readability when exported fields are removed,
forbid the printer from emitting an emp...
Updates http2 to x/net/http2 git rev c73622c77280
http2: always delay closing the connection af...
3416a4c1273c66cfeb7fbcc7b3777279a325b261 authored over 7 years ago
In CL 50510, the Content-Type header started to be set in Redirect when
request method is GET. (...
Change-Id: I4542f6c095a35a4dec03c67c45a75a155197eb56
Reviewed-on: https://go-review.googlesource...
When run `go doc -u http.connectMethod`, the whole table is treated as
a single long line. This ...
Simplify how pprof attaches the handlers to the DefaultMux by using
http.HandleFunc instead of m...
Header.WriteSubset uses a sync.Pool but wouldn't Put the sorter back in
the pool if there was an...
A 1XX, 204, or 304 response may not include a response body according
to RFC 7230, section 3.3.3...
Updates http2 to x/net/http2 git rev 1087133bc4a for:
http2: reject DATA frame before HEADERS...
d531b38190e61fa9aa27d7329d792a0411b334a1 authored over 7 years ago
If the client sends a request with a custom Host header and receives
a relative redirect in resp...
Change-Id: I50389752dcbf5d058ce11256a414be7955cdb77f
Reviewed-on: https://go-review.googlesource...
Check to ensure that Status is set
when parsing a proxied HTTPS response
that a CONNECT proxy-au...
net/http already supports http proxies. This CL allows it to establish
a connection to the http ...
This reverts https://golang.org/cl/66372.
Updates #22148
Change-Id: I3e94af3dfc11a2883bf28e1d5...
4ac1703f57eae30db28fd0ac1bbc9d942210b1f9 authored over 7 years agoThis reverts https://golang.org/cl/65930.
Fixes #22148
Change-Id: Ie0712621ed89c43bef94417fc32...
ebd96485a10f0286611f22f473ed432c27264ee0 authored over 7 years agoFixes #22084.
Change-Id: If405ffdc57fcf81de3c0e8473c45fc504db735bc
Reviewed-on: https://go-revi...
Change-Id: Ic3f7f575d3640706adb7d64545ed8027add6c58f
Reviewed-on: https://go-review.googlesource...
strings.LastIndexByte was introduced in go1.5 and it can be used
effectively wherever the second...
Transport.Proxy is documented as only supporting the http and socks5
schemes. If one tries to us...
strings.IndexByte was introduced in go1.2 and it can be used
effectively wherever the second arg...
See https://go-review.googlesource.com/c/go/+/59850
Change-Id: I9f0b6bc009eae86cbbdb56562ee4eb8...
899646d99d330a664d84597b5e4f3965c6a937ef authored over 7 years agoa -> an
Change-Id: I7362bdc199e83073a712be657f5d9ba16df3077e
Reviewed-on: https://go-review.goo...
Calling response.Body.Close() early would generarate a race before this.
Since closing would ret...
Ensure that the implicitly created redirect
for
"/route"
after
"/route/"
has been registered...
Fixes #20933
Change-Id: I827c8d265674a7448c51c1da991e9b3b4501ba11
Reviewed-on: https://go-revie...
Found with mvdan.cc/unindent. It skipped the cases where parentheses
would need to be added, whe...
In TimeoutHandler, use a request whose context has been configured with
the handler's timeout
F...
aa728a7f165a244c19582334193f2735082f29d3 authored over 7 years agoCloses #21637
Change-Id: Icc3528572ea2a25e62757cc8fbbb9c3fa96a78b2
Reviewed-on: https://go-revi...
Went mainly for the ones that make no sense, such as the ones
mid-sentence or after commas.
Cha...
74332642561d083bea9f23ca762ff5aefba9de49 authored over 7 years ago
In the existing implementation, if pattern is an empty string,
program calls a panic with the me...