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
The race occurs rarely, but by putting some delays and more reads/writes
of prePendingDial/postP...
Fixes #10572
Change-Id: I764f3c226cf98ff39d9e553e4613d0ee108ef766
Reviewed-on: https://go-revie...
Includes a new net/http test too.
Fixes #11202
Change-Id: I61edc594f4de8eb6780b8dfa221269dd482...
8675dec59687e1a4357ef6faa12eb057d8558ec2 authored over 9 years ago by Brad Fitzpatrick <[email protected]>Fixes #11399
Change-Id: I3be7fbc86c5f62761f47122632f3e11b56cb6be6
Reviewed-on: https://go-revie...
Default user agent in use - "Go 1.1 package http" doesn't conform to RFC 7231.
See http://tools....
All other exported errors in net/http are commented. This change adds
documentation to ErrNoCoo...
The consecutive calls to Head would sometimes get different
connections depending on if the read...
Some old buggy browsers sent extra CRLF(s) after POST bodies. Skip
over them before reading subs...
If a client sent a POST with a huge request body, calling
req.Body.Close in the handler (which i...
Instead of ambiguously referring to "the Client's CheckRedirect
function" in Head, describe the ...
Fixes #8296
Change-Id: I71b330a0f961d46ae4ed81d5f3f5ce5bf708a29a
Reviewed-on: https://go-review...
The ListenAndServerTLS function still requires the certFile and
keyFile, but the Server.ListenAn...
Fixes #8137
Change-Id: Icd94bbe430a3ef333248425449b5fc678edb0343
Reviewed-on: https://go-review...
Fixes #11208
Change-Id: I35cc94129577b2a977fd35aafb0a5fb02c534a7c
Reviewed-on: https://go-revie...
This appears to be some legacy which is no longer used.
Change-Id: I469beb59a90853e8de910158f17...
64e968d39afdb0e1556d7825a46aaaa88eb0e57e authored over 9 years ago by Todd Neal <[email protected]>
Change-Id: I35d20ed958c32d464b2c9d849403b6e3f99b6482
Reviewed-on: https://go-review.googlesource...
Change-Id: I7b54be9d8b50b39e01c6be21f310ae9a10404e9d
Reviewed-on: https://go-review.googlesource...
These were found by grepping the comments from the go code and feeding
the output to aspell.
Ch...
af07f383014ead5411f286fd6edbcc0a4cc7a6c6 authored over 9 years ago by Ainar Garipov <[email protected]>Per RFC 6265.
Change-Id: I2b6b145f5d057f96509332509d722602ed9e2bbd
Reviewed-on: https://go-revi...
The Error function is a potential XSS vector if a user can control the
error message.
For examp...
9649939ec1a6147e3af39c014490f29a66962d10 authored over 9 years ago by Andrew Gerrand <[email protected]>
The Transport's writer to the remote server is wrapped in a
bufio.Writer to suppress many small ...
When running the client header timeout test, there is a race between
us timing out and waiting o...
Fixes #9987
Change-Id: Ibebd105a2bcdc1741f3b41aa78cb986f3f518b53
Reviewed-on: https://go-review...
The test was measuring something, assuming other goroutines had
already scheduled.
Fixes #10427...
1f153e7a947ce4c5fa55610950b20e72bde388e3 authored over 9 years ago by Brad Fitzpatrick <[email protected]>Fixes #9876
Change-Id: I97a354fde827dfccc9e373fadea2e37d094439b0
Reviewed-on: https://go-review...
Fixes #8840
Change-Id: I194d0248734c15336f91a6bcf57ffcc9c0a3a435
Reviewed-on: https://go-review...
Fixes an issue where Response.Write writes out a Content-Length: -1
header when the correspondin...
Fixes #10366 (how to set custom headers)
Fixes #9836 (PATCH in PostForm)
Fixes #9276 (generating...
No code changes.
Fixes #8992
Change-Id: I10c8340a4f8e3e7add9b3ac5aa0a1e8d8aa49f40
Reviewed-on:...
In the brief window between getConn and persistConn.roundTrip,
a cancel could end up going missi...
Previously all errors were 404 errors, even if the real error had
nothing to do with a file bein...
There used to be a small window where if a server declared it would do
a keep-alive connection b...
Fixes #9496
Fixes #9946
Fixes #10474
Fixes #10405
Change-Id: I4e65f1706e46499811d9ebf4ad6d83a5d...
713f2e42a865c38a2b6661f8209c2e50d117d17c authored over 9 years ago by Brad Fitzpatrick <[email protected]>Just like darwin/arm.
Change-Id: Ib9a32bb0aed5f08b27de11a93aaf273cacdf5779
Reviewed-on: https:/...
There was a logical race in Transport.RoundTrip where a roundtrip with
a pending response would ...
When making a request to an IPv6 address with a zone identifier, for
exmaple [fe80::1%en0], RFC ...
Change-Id: I38fc0ab84a374cb9be0234e40665d7cea0e76fc1
Reviewed-on: https://go-review.googlesource...
Issue #10043 was resolved by https://golang.org/cl/7072.
This test now passes.
Change-Id: I7bde...
3f1302f56e5929552fa9259200f5d1d0980e9af4 authored over 9 years ago by David Crawshaw <[email protected]>
ServeContent ignored zero time.Time{} values when generating
Last-Modified response headers and ...
The body tag in the pprof template was misplaced.
Change-Id: Icd7948b358f52df1acc7e033ab27a0629...
90fc013d6a84851db022ac446f485c5ff00ec5b8 authored over 9 years ago by Quoc-Viet Nguyen <[email protected]>Comment changes only.
Change-Id: I56848814564c4aa0988b451df18bebdfc88d6d94
Reviewed-on: https:/...
This allows /debug/pprof/ and descendents to be used through
http.StripPrefix and other path rew...
Issue #10043
Change-Id: I6ce7f303cd96ac575f7a673dd4a459339382d22e
Reviewed-on: https://go-revie...
Currently the test fails if run more than once:
$ go test -v -run=TestChildServeCleansUp -cpu=1...
2b746aa67a91f051b66f48db039a9b7a2bef8f76 authored over 9 years ago by Dmitry Vyukov <[email protected]>
Change-Id: I2fc3cf94b465bf9d7ff8d7bf935b45e334b401e3
Reviewed-on: https://go-review.googlesource...
Change-Id: I05cdf357249166a45105703e9317793aa2088844
Reviewed-on: https://go-review.googlesource...
Env vars were incorrectly copying whole value of http.RemoteAddr
to REMOTE_ADDR and REMOTE_HOST....
I think the test was meant to test requests to 'localhost:80' instead
of 'localhost:80:80'. It p...
Only documentation / comment changes. Update references to
point to golang.org permalinks or go....
Change-Id: Ida064ff422d077d508ef94f52fc813daa6277a99
Reviewed-on: https://go-review.googlesource...
Change-Id: Ic8a01d06ffc6c80beaf6dee9e7242dcbb7425e71
Reviewed-on: https://go-review.googlesource...
We already checked for the prefix with strings.HasPrefix
Change-Id: I33852fd19ffa92aa33b75b94b4...
c52e4488fc5dc39053a5364c388c5ad7160a3aa4 authored almost 10 years ago by Erik Aigner <[email protected]>This should fix the race builders.
Change-Id: I9c9e7393d5e29d64ab797e346b34b1fa1dfe6d96
Reviewe...
net/http/pprof part of tracing functionality:
https://docs.google.com/document/u/1/d/1FP5apqzBgr...
Race builders report goroutine leaks after addition of this benchmark:
http://build.golang.org/l...
BenchmarkClient is intended for profiling
the client without the HTTP server code.
The server co...
Close the pipe for the body of a request when it is aborted and close
all pipes when child.serve...
Change-Id: Ia8d4459a39425583027f00410fe17b9686b768db
Reviewed-on: https://go-review.googlesource...
Cygwin perl uses unix pathnames in windows. Include cygwin perl in the
list of special cases for...
Skip the allocation testing (which was only used as a signal for
whether the interface was imple...
Update #9554
Change-Id: I7de2a7d585d56b84ab975565042ed997e6124e08
Reviewed-on: https://go-revie...
If an inbound connection is closed, cancel the outbound http request.
This is particularly usef...
eef76e1fcb8e0ad1bc8685be0b581af59fad6f5c authored almost 10 years ago by Peter Waller <[email protected]>
Reader.Discard is the complement to Peek. It discards the next n bytes
of input.
We already hav...
7989e6af39a23e31d09116b8835fa6f7bb8b6ee7 authored almost 10 years ago by Brad Fitzpatrick <[email protected]>
We already had client support for trailers, but no way for a server to
set them short of hijacki...
Change-Id: I60bbb7deb7462d1ca884677b4f86bd54b20b3f35
Reviewed-on: https://go-review.googlesource...
Currently when we get a CGI or FCGI request, the remote port of the client
is hard coded to zero...
Given a file of size N, a request for "Range: bytes=N-*" should
return a 416 [1]. Currently, it...
Co-hacking with Dave Cheney.
Fixes #9405
Change-Id: I14fc3b6a47dcdb5e514e93d062b804bb24e89f47
...
I broke the build in https://golang.org/change/207950a when I made
http.Transport send "Connecti...
No bug was open, but I found an old email to myself to investigate
when I suspected this was hap...
Fixes #5645
Change-Id: Ifb46d6faf7ac838792920f6fe00912947478e761
Reviewed-on: https://go-review...
Fixes #9104
Change-Id: Ide5ac70215d73278e6910f5b9c7687ad7734c0be
Reviewed-on: https://go-review...
Change-Id: I64985f8de7ca09e63208e8c949a5d4f4fc09073f
Reviewed-on: https://go-review.googlesource...
LGTM=bradfitz
R=bradfitz, alex.brainman
CC=golang-codereviews
https://golang.org/cl/168600044
LGTM=rsc, r
R=r, rsc
CC=golang-codereview, golang-codereviews
https://golang.org/cl/168050043
New detection because of net/http now using TestMain.
Fixes #9033
LGTM=iant
R=golang-coderevie...
LGTM=bradfitz
R=bradfitz
CC=golang-codereviews
https://golang.org/cl/168860044
We force runtime.GC before WriteHeapProfile with -test.heapprofile.
Make it possible to do the s...
The http package by default adds "Accept-Encoding: gzip" to outgoing
requests, unless it's a bad...
Fixes #8534
LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/149340044
http.Client calls URL.String() to fill in the Referer header, which may
contain authentication i...
Bodies larger than 8KB (the default bufio reader size) weren't
being dumped. Force a read of th...
See comment 4 of https://code.google.com/p/go/issues/detail?id=8483#c4:
"So if a user creates a...
dc8ffe218b3e084fd5683d0f9ba2bd76e6597db1 authored about 10 years ago by Brad Fitzpatrick <[email protected]>
Use case is SSE recommended configuration: http://www.w3.org/TR/eventsource/#notes
Removes a TOD...
Fixes #8067
LGTM=r
R=r
CC=golang-codereviews
https://golang.org/cl/146480043
LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/142650043
attribute values, a la RFC 6265 section 4.1.1 "Syntax".
Fixes #7751.
LGTM=dr.volker.dobler
R=dr...
Fixes #8724
LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/148040043
Fixes #6181
LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/148980043
LGTM=adg
R=rsc, adg
CC=golang-codereviews
https://golang.org/cl/144240043
Fixes #8594.
LGTM=bradfitz
R=bradfitz
CC=golang-codereviews
https://golang.org/cl/145760043
Fixes #8755.
LGTM=bradfitz
R=bradfitz
CC=golang-codereviews, jtuley
https://golang.org/cl/13671...
Fixes #8722
LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/142090043
Preparation was in CL 134570043.
This CL contains only the effect of 'hg mv src/pkg/* src'.
For ...