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

net/http: add missing HTTP status codes

This commit adds missing status codes:

* 102 - Processing
* 207 - Multi-Status
* 208 - Already ...

8b3538f2192082eeacede88d46cb8cc05c614df9 authored over 8 years ago by Seth Vargo <[email protected]>
net/http: update bundled http2

Updates x/net/http2 to git rev 0c607074 for https://golang.org/cl/23311,
"http2: prevent Server ...

b0f8a48c36eb5d516a8e55c304920ebe07b71553 authored over 8 years ago by Brad Fitzpatrick <[email protected]>
net/http: deflake TestTransportEventTrace_h2

Fixes #15765

Change-Id: Id0a89d90ef9d3fffa9af0affca8c10a26fe6b7bc
Reviewed-on: https://go-revie...

38bedc12e4302d23c2c39023ebf77fb170eb02df authored over 8 years ago by Brad Fitzpatrick <[email protected]>
net/http: update bundled http2

Updates x/net/http2 to git rev 4d07e8a49 for CL 23287:

http2: let handlers close Request.Bod...

2fd94a3477e85ac73db7799a4c3b8a5ead7da839 authored over 8 years ago by Brad Fitzpatrick <[email protected]>
net/http: also clone DynamicRecordSizingDisabled in cloneTLSConfig

Updates #15771

Change-Id: I5dad96bdca19d680dd00cbd17b72a03e43eb557e
Reviewed-on: https://go-rev...

3f39411099275598d54205f2610f652d1ec5614e authored over 8 years ago by Brad Fitzpatrick <[email protected]>
net/http: update bundled http2

Updates x/net/http2 to git rev 8a52c78 for golang.org/cl/23258
(http2: fix Transport.CloseIdleCo...

c6d234630a0b05a7fa2fa0832111428392614b6e authored over 8 years ago by Brad Fitzpatrick <[email protected]>
net/http: update bundled http2

Updates x/net/http2 to git rev 202ff482 for https://golang.org/cl/23235 (Expect:
100-continue su...

cac4dc7a82c67e66156437a52166da47bfdfac9f authored over 8 years ago by Brad Fitzpatrick <[email protected]>
net/http/httptest: restore historic ResponseRecorder.HeaderMap behavior

In Go versions 1 up to and including Go 1.6,
ResponseRecorder.HeaderMap was both the map that ha...

f7b0a04d5011fd856cae6c5db66527b089afbad0 authored over 8 years ago by Brad Fitzpatrick <[email protected]>
net/http: update bundled http2

Updates x/net/http2 to git rev 5916dcb1 for:

* http2, lex/httplex: make Transport reject bogus ...

1fa38d001af61f779fa114a5b6024b861be75528 authored over 8 years ago by Brad Fitzpatrick <[email protected]>
net/http: update bundled x/net/http2 for Server context changes

Updates x/net/http2 to golang.org/cl/23220
(http2: with Go 1.7 set Request.Context in ServeHTTP ...

d43c3573bd42c67ef7d045c00f3565698d83a006 authored over 8 years ago by Brad Fitzpatrick <[email protected]>
net/http: further restrict when Transport's automatic HTTP/2 happens

Make the temporary, conservative restrictions from rev 79d9f48c in Go
1.6 permanent, and also do...

c05868e1e325cd333bae246e5a1429a04884d70f authored over 8 years ago by Brad Fitzpatrick <[email protected]>
net/http: allow Client.CheckRedirect to use most recent response

Fixes #10069

Change-Id: I3819ff597d5a0c8e785403bf9d65a054f50655a6
Reviewed-on: https://go-revie...

a157d2a91477415359b21408d1a6233fc428b87d authored over 8 years ago by Brad Fitzpatrick <[email protected]>
net/http: update bundled x/net/http2 for httptrace changes

Updates x/net/http2 to 3b99394 for golang.org/cl/23205

And associated tests.

Fixes #12580

Cha...

789c8ef6f43b5bd047ad86aadbbb4b0bebae29c6 authored over 8 years ago by Brad Fitzpatrick <[email protected]>
net/http: fix spurious logging in Transport when server closes idle conn

In https://golang.org/3210, Transport errors occurring before
receiving response headers were wr...

d62a858a898dded5a48d3b19a78f7e2ca8e922d6 authored over 8 years ago by Brad Fitzpatrick <[email protected]>
net/http: add test confirming a connection reuse case

Verify that for a server doing chunked encoding, with the final data
and EOF arriving together, ...

9f9c93c60fe16f0246f1f80c523851d96ef5f79c authored over 8 years ago by Brad Fitzpatrick <[email protected]>
net/http: mention ALPN in http.Server.TLSNextProto documentation

Make clear negotiation can happen via NPN or ALPN, similar to
http.Transport.TLSNextProto and x/...

29e2f61315a9b38883fc4e4101524d91726d985a authored over 8 years ago by Dan Peterson <[email protected]>
net/http/httputil: don't add User-Agent header by proxy made with NewSingleHostReverseProxy

If client does not provided User-Agent header, do not set default one
used by net/http package w...

bd1e9de7de798472eedd160867f0bfae3e0d6060 authored over 8 years ago by Artyom Pervukhin <[email protected]>
net, net/http: don't trace DNS dials

This fixes change https://go-review.googlesource.com/#/c/23069/, which
assumes all DNS requests ...

527687329b9cb337c46a4ffc4a77041af4339060 authored over 8 years ago by Tom Bergan <[email protected]>
net, net/http: don't trace UDP dials

The httptrace.ConnectStart and ConnectDone hooks are just about the
post-DNS connection to the h...

82362d4920765ea70165e26060882f9b504afe88 authored over 8 years ago by Brad Fitzpatrick <[email protected]>
net/http: keep HTTP/1.0 keep-alive conns open if response can't have a body

Fixes #15647

Change-Id: I588bfa4eb336d1da1fcda8d06e32ed13c0b51c70
Reviewed-on: https://go-revie...

2dc5a49e9d6e4f120ac5bc34f4602068a18af29b authored over 8 years ago by Brad Fitzpatrick <[email protected]>
net/http: make the MaxBytesReader.Read error sticky

Fixes #14981

Change-Id: I39b906d119ca96815801a0fbef2dbe524a3246ff
Reviewed-on: https://go-revie...

8cf098bcb903b519a389c9eb2faea1c04988bf75 authored over 8 years ago by Brad Fitzpatrick <[email protected]>
net/http: document ResponseWriter read-vs-write concurrency rules

Summary: Go's HTTP/1.x server closes the request body once writes are
flushed. Go's HTTP/2 serve...

72e9fff7cc28ae3ca5bca01a22a3df4c4c47d869 authored over 8 years ago by Brad Fitzpatrick <[email protected]>
net/http: update bundled x/net/http2

Updates x/net/http2 to git rev 96dbb961 for golang.org/cl/23002

Fixes #15366
Updates #15134 (se...

b0fa1783147cd5642cf9d6a579d23c77efc646ac authored over 8 years ago by Brad Fitzpatrick <[email protected]>
net/http: wait longer for subprocess to startup in test

Might deflake the occasional linux-amd64-race failures.

Change-Id: I273b0e32bb92236168eb99887b1...

b44cb4e095fb5739995bcf0932b17ea1e0df4491 authored over 8 years ago by Brad Fitzpatrick <[email protected]>
net/http: don't assume Response.Request is populated after redirect errors

Fixes #15577

Change-Id: I5f023790a393b17235db2e66c02c2483773ddc1a
Reviewed-on: https://go-revie...

0d0f2b523627cb19c1d21147d6c8d648dc3e845c authored over 8 years ago by Brad Fitzpatrick <[email protected]>
all: use SeekStart, SeekCurrent, SeekEnd

CL/19862 (f79b50b8d5bc159561c1dcf7c17e2a0db96a9a11) recently introduced the constants
SeekStart,...

cb0a3ccca8512f80ddb0719fc0c43a9953b66af6 authored over 8 years ago by Joe Tsai <[email protected]>
net/http: correct RFC for MethodPatch

Fixes #15546.

Change-Id: I39c29ea6999812dd5f1c45f67bddad28f20b6c6b
Reviewed-on: https://go-revi...

592d21343662be62d4d5fa39e0e940498ada6111 authored over 8 years ago by Shenghou Ma <[email protected]>
net/http: keep idle conns sorted by usage

Addressing feedback from Alan Su in https://golang.org/cl/22655

Change-Id: Ie0724efea2b4da67503...

a1406f026055a135052b6f788a4cdb16957a8258 authored over 8 years ago by Brad Fitzpatrick <[email protected]>
net/http: fix typo in comment in main_test

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

25f975fa831a0c93ccca8d60af185643075ac8b1 authored over 8 years ago by Emmanuel Odeke <[email protected]>
net/http: remove some TODOs

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

7bb89ebefe657dcecad84e250434df18e2e3780e authored over 8 years ago by Brad Fitzpatrick <[email protected]>
net/http: gofmt -w -s

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

aab2cb77a203ec5ebc6c77fedbecaded89e2c53e authored over 8 years ago by Mikio Hara <[email protected]>
net/http: fix typo in comment

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

615731e0b80df7bf0faa0b11bdbaa860b02c4d9b authored over 8 years ago by Brad Fitzpatrick <[email protected]>
net/http: add Response.Uncompressed bool

The Transport's automatic gzip uncompression lost information in the
process (the compressed Con...

09c19234cdb93c713d95aeabebe4774ebad3741f authored over 8 years ago by Brad Fitzpatrick <[email protected]>
net/http: provide access to the listener address an HTTP request arrived on

This adds a context key named LocalAddrContextKey (for now, see #15229) to
let users access the ...

abd8cc8d7e9ad415dde5fa66c4f87c770c2d45b1 authored over 8 years ago by Brad Fitzpatrick <[email protected]>
net/http: add Transport.IdleConnTimeout

Don't keep idle HTTP client connections open forever. Add a new knob,
Transport.IdleConnTimeout,...

7f813f25d9997b56e3af879214fe1d9260e33db1 authored over 8 years ago by Brad Fitzpatrick <[email protected]>
net/http: fix a few crashes with a ClientTrace with nil funcs

And add a test.

Updates #12580

Change-Id: Ia7eaba09b8e7fd0eddbcaefb948d01ab10af876e
Reviewed-o...

d83f1b8d54d1f48ae376a8a3951672ed27a265e2 authored over 8 years ago by Brad Fitzpatrick <[email protected]>
net/http: document some errors more, mark ErrWriteAfterFlush as unused

Fixes #15150

Change-Id: I1a892d5b0516a37dac050d3bb448e0a2571db16e
Reviewed-on: https://go-revie...

f25beef5a4541725e213aa420f418db29ef6d930 authored over 8 years ago by Brad Fitzpatrick <[email protected]>
net/http: add Transport.MaxIdleConns limit

The HTTP client had a limit for the maximum number of idle connections
per-host, but not a globa...

1cf7a7b16f08092f1fbe5ae6540a409c3083b6b1 authored over 8 years ago by Brad Fitzpatrick <[email protected]>
net/http: expand documentation of Server.MaxHeaderBytes

Clarify that it includes the RFC 7230 "request-line".

Fixes #15494

Change-Id: I9cc5dd5f2d85ebf...

8f7069d46d2b7577001f6692385bbd2ffcf93ff1 authored over 8 years ago by Brad Fitzpatrick <[email protected]>
net/http, net/http/httptrace: new package for tracing HTTP client requests

Updates #12580

Change-Id: I9f9578148ef2b48dffede1007317032d39f6af55
Reviewed-on: https://go-rev...

6f96dd9ca163d333bb790da93237e9bed9cd590c authored over 8 years ago by Brad Fitzpatrick <[email protected]>
crypto/tls: allow renegotiation to be handled by a client.

This change adds Config.Renegotiation which controls whether a TLS
client will accept renegotiat...

a4736bda07eb513885ab09576b6e92abbca17e68 authored over 8 years ago by Adam Langley <[email protected]>
net/http: skip TestTransportRemovesDeadIdleConnections on Plan 9

Updates #15464.

Change-Id: If3221034bb10751c6fcf1fbeba401a879c18079f
Reviewed-on: https://go-re...

16e22ea21dc4bde4d17e20f6ffc5db96b90d0d4a authored over 8 years ago by David du Colombier <[email protected]>
net/http: remove idle transport connections from Transport when server closes

Previously the Transport would cache idle connections from the
Transport for later reuse, but if...

70130b24782fcab148910683f44414e5d344fe95 authored over 8 years ago by Brad Fitzpatrick <[email protected]>
net/http: document Hijacker and Flusher more

Fixes #15312

Change-Id: I4fabef3f21081bc4b020069851b5c2504bc6b4d8
Reviewed-on: https://go-revie...

76a4696274bb08e9a406cf151a57184272d55f06 authored over 8 years ago by Brad Fitzpatrick <[email protected]>
net/http: normalize empty port in URL.Host's ":port"

- Ensures that the empty port and preceeding ":"
in a URL.Host are stripped.
Normalize the empty...

f64cbe7834a7eb2d769ba0a83e1a691c5a9200b4 authored over 8 years ago by Emmanuel Odeke <[email protected]>
net/http: add Transport.Dialer, plumb RoundTrip contexts to net package

This simply connects the contexts, pushing them down the call stack.
Future CLs will utilize the...

2480e94259118888629979df047f24fd48b73715 authored over 8 years ago by Brad Fitzpatrick <[email protected]>
all: use new io.SeekFoo constants instead of os.SEEK_FOO

Automated change.

Fixes #15269

Change-Id: I8deb2ac0101d3f7c390467ceb0a1561b72edbb2f
Reviewed-o...

496ef1c7f95a1fb43ba5e51405fe383f7f43467d authored over 8 years ago by Brad Fitzpatrick <[email protected]>
net/http: add test that panic in a handler signals an error to the client

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

c962e672aeda9188a80a4c312795911129e3216c authored over 8 years ago by Brad Fitzpatrick <[email protected]>
all: standardize RFC mention format

Standardize on space between "RFC" and number. Additionally change
the couple "a RFC" instances ...

ca4d7dbef592038f7afe408bf16884ffb17420d6 authored over 8 years ago by Dan Peterson <[email protected]>
net/http: fix TestLinuxSendfile on s390x

s390x doesn't have sendfile64 so apply the same fix as MIPS
(eebf7d27) and just use sendfile.

C...

646214919fd5f10c26db9027e455cba5984ee044 authored over 8 years ago by Michael Munday <[email protected]>
net/http: add ServerContextKey to let a handler access its Server

Fixes #12438
Updates #15229 (to decide context key variable naming convention)

Change-Id: I3ba4...

712acfe005499e6111e0a38a50e8ff93ff98e545 authored over 8 years ago by Brad Fitzpatrick <[email protected]>
net/http: document Error does not end the request

Fixes #15205

Change-Id: Ia650806756758ca8ed2272b1696e59b809b16c61
Reviewed-on: https://go-revie...

0872646c031d1a51809b3c1fa24118f47574cb36 authored over 8 years ago by Dan Peterson <[email protected]>
all: use bytes.Equal, bytes.Contains and strings.Contains, again

The previous cleanup was done with a buggy tool, missing some potential
rewrites.

Change-Id: I3...

f0dfa6ca749c62569abccd0bda27907f94e48db7 authored over 8 years ago by Dominik Honnef <[email protected]>
net/http/pprof: accept fractional seconds in trace handler

For heavily loaded servers, even 1 second of trace is too large
to process with the trace viewer...

3c9935c8b573895de1dc634a0ad45966915fc847 authored over 8 years ago by Russ Cox <[email protected]>
net/http: set the Request context for incoming server requests

Updates #13021
Updates #15224

Change-Id: Ia3cd608bb887fcfd8d81b035fa57bd5eb8edf09b
Reviewed-on:...

cafbf2a48ba5d51d92d27bc103b52babb97eec4b authored almost 9 years ago by Brad Fitzpatrick <[email protected]>
all: replace magic 0x80 with named constant utf8.RuneSelf

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

96f5847c971a2e733fb2674ace840a5b3c8e3f15 authored almost 9 years ago by Martin Möhrmann <[email protected]>
net/http/httputil: DumpRequest dumps Content-Length if set in header

Fixes #7215

Change-Id: I108171ef18cac66d0dc11ce3553c26fc49529807
Reviewed-on: https://go-review...

b143f699d784e90012df9ba31b6aeef6929f5378 authored almost 9 years ago by Emmanuel Odeke <[email protected]>
net/http: fixed trivial go vet warnings

Updates #15177

Change-Id: I748f025461f313b5b426821ead695f90d3011a6b
Reviewed-on: https://go-rev...

cfb0a650f4bfabed54c16c8abb9d403b9adc803d authored almost 9 years ago by Emmanuel Odeke <[email protected]>
net, runtime: skip flaky tests on OpenBSD

Flaky tests are a distraction and cover up real problems.

File bugs instead and mark them as fl...

fed1ebc3f876b9f2a9f95358b5007d7b98961e3a authored almost 9 years ago by Brad Fitzpatrick <[email protected]>
net/http/pprof: note calling runtime.SetBlockProfileRate is required for block profile

Fixes #15076

Change-Id: I5ce8f6253245d8cc1f862a1bf618775f557f955d
Reviewed-on: https://go-revie...

bcc8d2f12c57c459da2f6efa5db87bbce2006d30 authored almost 9 years ago by Dan Peterson <[email protected]>
net/http: keep request context during Client redirects

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

c0753d1767583528f5c02bde450c0273bc437f79 authored almost 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: document that Handlers shouldn't mutate Request

Also, don't read from the Request.Headers in the http Server code once
ServeHTTP has started. Th...

f0e8b4c0604d2a19db8377ebbc5a6ba6f811f8c9 authored almost 9 years ago by Brad Fitzpatrick <[email protected]>
net/http, net/http/httputil: start with capitals in deprecation sentences

Fixes #15139

Change-Id: I73111137907e612af871b77ccf166572bf78c840
Reviewed-on: https://go-revie...

1c331a63a66a42a18098a096ef213376eec74091 authored almost 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: zero pad Response status codes to three digits

Go 1.6's HTTP/1.x Transport started enforcing that responses have 3
status digits, per the spec,...

4acaf7189da7afd106003186a99954878663e514 authored almost 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: add Request.Context and Request.WithContext

Currently only used by the client. The server is not yet wired up. A
TODO remains to document h...

b4ddc74b46faa537681ecb0bcbdd08f60d67230d authored almost 9 years ago by Brad Fitzpatrick <[email protected]>
net/http/httputil: deprecate Client+ServerConn harder, use Deprecated syntax

Also cleans up return parameter stutter and missing periods.

Change-Id: I47f5c230227ddfd1b105d5...

1978bd0047364a0cbb66013372042768b39e44e1 authored almost 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: clean up the Client redirect code, document Body.Close rules more

Issue #8633 (and #9134) noted that we didn't document the rules about
closing the Response.Body ...

2ca0b1f46819ca7d323068cd30854f67524405ae authored almost 9 years ago by Brad Fitzpatrick <[email protected]>
net/http/httputil: make ReverseProxy return 502 Bad Gateway instead of 500

... when the backend can't be reached.

Fixes #9864

Change-Id: I9e4814824943060e0101b6236d6dfd8...

f15e72defb69f4fdb2584c4837a2621e59068d52 authored almost 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: update bundled http2

Updates x/net/http2 to git rev 31df19d6 for changes since Go 1.6.

The main change was https://g...

524bb7cfc0860693c6375ef08e5200555bbc8db7 authored almost 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: limit Transport's reading of response header bytes from servers

The default is 10MB, like http2, but can be configured with a new
field http.Transport.MaxRespon...

18eaa1b9bf51c3e5811758ed73cb818fd1011ae4 authored almost 9 years ago by Brad Fitzpatrick <[email protected]>
net/http, net/http/httputil: rename lk to mu

The conventional name for a sync.Mutex is "mu".

These "lk" names date back to a time before con...

8d81e7d7672579fa01e7ff217263246cca3004ee authored almost 9 years ago by Brad Fitzpatrick <[email protected]>
net/http/httptest: clean up unnecessary goroutine

Finishes cleanup which was too late to do when discovered during the
Go 1.6 cycle.

Fixes #14291...

dea60c82f052fb57300bdce8bdba4af85ad8011d authored almost 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: allow Handlers to handle http2 upgrade PRI requests

The http2 spec defines a magic string which initates an http2 session:

"PRI * HTTP/2.0\r\n\...

e61dd473b9004d12dcf39f01e083a698499e757e authored almost 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: validate transmitted header fields

This makes sure the net/http package never attempts to transmit a
bogus header field key or valu...

9330724f96eea9a057efb4dfd880abfc548930f2 authored almost 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: reuse HTTP/1 Transport conns more for gzipped responses

Flip around the composition order of the http.Response.Body's
gzip.Reader vs. the reader which k...

32b0392648ad1383002a37e2e573e8123d15fa02 authored almost 9 years ago by Brad Fitzpatrick <[email protected]>
net/http/cgi: allow CGI host to configure where child's stderr goes

Patch originally from Steven Hartland. Tweaked a bit & added a test.

Fixes #7197

Change-Id: I0...

8e0d5190caf36d876d8427405e49aaf83b5db123 authored almost 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: add more audio/video mime sniffing

Following the spec at
https://mimesniff.spec.whatwg.org/#matching-an-audio-or-video-type-patte...

a0f85b2cf3cad989f05f26bfb740f20fd650bd8e authored almost 9 years ago by Emmanuel Odeke <[email protected]>
all: delete dead non-test code

This change removes a lot of dead code. Some of the code has never been
used, not even when it w...

4de4a79dc0e67411c8dce941bc458bb2274fe0e3 authored almost 9 years ago by Dominik Honnef <[email protected]>
vendor: move golang.org/x/net/http2/hpack back to vendor

Updates #14047

Change-Id: I7e314e2c7e3e8da18ab023729740fbc9ea3f661e
Reviewed-on: https://go-rev...

01dff1901021fdc66867a5a65668a8fb93852716 authored almost 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: redirect if the URL path is a dir & doesn't end in a slash

Fixes #13996

Change-Id: I9b2c7fba0705900aca9a70bc6a2687667a9a976c
Reviewed-on: https://go-revie...

a8156fcba42cbc0c4541b1e2ac6cb7ff314c681a authored almost 9 years ago by Mohit Agarwal <[email protected]>
net/http/httptest: add NewRequest helper for ease of testing handlers

Fixes #14199

Change-Id: Ic9284023b663de3db1ca7b7b1e96eeab82ec0944
Reviewed-on: https://go-revie...

895ab0c316341ea4c705e84a112a97dc6840dab5 authored almost 9 years ago by Brad Fitzpatrick <[email protected]>
net/http, internal/testenv: find go binary in PATH

Fixes #14901

Change-Id: Ia32e09767374a341c9a36c5d977d47d7d1a82315
Reviewed-on: https://go-revie...

799e38208f17b9aa7f5ad61d3245129bc5d60961 authored almost 9 years ago by David Crawshaw <[email protected]>
all: delete dead test code

This deletes unused code and helpers from tests.

Change-Id: Ie31d46115f558ceb8da6efbf90c3c204e0...

51ca3daaaad851acbda2ec1370f7ca9e5ededfc1 authored almost 9 years ago by Dominik Honnef <[email protected]>
net/http: adaptive wait time in PersistConnLeak tests

In tests TransportPersistConnLeak and TransportPersistConnLeakShortBody,
there's a fixed wait ti...

371b0665765ac4dd688138cbfec9c400381f65eb authored almost 9 years ago by Richard Miller <[email protected]>
net/http: remove init func reference to ServeMux

Shrinks cmd/go by 30KB.

Change-Id: Ied31192e85af76ebac743f8cc12bd9ef6ec5048f
Reviewed-on: https...

106fbd41164b8a2c322d07ccfc7627dbc763f578 authored almost 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: use dynamic type assertion to remove HTTP server code from cmd/go

I was wondering why cmd/go includes the HTTP server implementations.

Dumping the linker's deadc...

88e610dbda4478298e3344ca3df87ac94f0bd5a4 authored almost 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: delete unused type readClose

readClose hasn't been used in years.

Change-Id: Ia963c082e049ef856c2a637fec15204efe48b3b6
Revie...

587a08673ae1ef77e414a70701264fd8f0507898 authored almost 9 years ago by Dominik Honnef <[email protected]>
net/http: make ParseMultipartForm also populate Request.PostForm

Ensures that after request.ParseMultipartForm has been invoked,
Request.PostForm and Request.For...

9015771ff011059927144782ecd0f8762e8ab968 authored almost 9 years ago by Emmanuel Odeke <[email protected]>
net/http: defer idleMu.Unlock() in tryPutIdleConn + minor typo fixes.

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

d1a37be86b94d59c976b237c9923610f3a0f3ebf authored almost 9 years ago by Emmanuel Odeke <[email protected]>
net/http/httptest: record trailing headers in ResponseRecorder

Trailers() returns the headers that were set by the handler after the
headers were written "to t...

9345ffe8113253605a5cd213e38ae7f259b48dfc authored almost 9 years ago by Caio Marcelo de Oliveira Filho <[email protected]>
net/http: TimeoutHandler should start timer when serving request

TimeoutHandler was starting the Timer when the handler was created,
instead of when serving a re...

e555607023aecbe758560940f5764c5bba071c36 authored almost 9 years ago by Caio Marcelo de Oliveira Filho <[email protected]>
net: fix vet warnings

Updates #11041

Change-Id: I12c20beab75d7981efe470eb418e4b58dc8eb066
Reviewed-on: https://go-rev...

38d8a62a676f89b259bf03f3912560fd44766a1b authored almost 9 years ago by Mohit Agarwal <[email protected]>
all: single space after period.

The tree's pretty inconsistent about single space vs double space
after a period in documentatio...

21bbe89516ac9eb35cdbced97ab43813ce0792e5 authored almost 9 years ago by Brad Fitzpatrick <[email protected]>
all: make copyright headers consistent with one space after period

This is a subset of https://golang.org/cl/20022 with only the copyright
header lines, so the nex...

8adba34ef03c054ebb37a09c2e188d1b0f8579ce authored almost 9 years ago by Brad Fitzpatrick <[email protected]>
all: remove public named return values when useless

Named returned values should only be used on public funcs and methods
when it contributes to the...

1213d8569b88aaf1696ddc2bb4e927a6ea950d45 authored almost 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: refactored internal shouldClose for readability

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

99b84a21ba3fdb3562e98aff43d470e5e39cb01b authored almost 9 years ago by Emmanuel Odeke <[email protected]>
all: fix typos and spelling

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

ee6548a450ab58a5c1aeea5b422e6153b9a4853a authored almost 9 years ago by Martin Möhrmann <[email protected]>
net/http/httputil: Keep response headers when response ContentLength is 0.

Current code does not print any response headers from httputil.DumpResponse().

PUT /minioclo...

63ca459c7bda2e414b293130082eba77879f604e authored almost 9 years ago by Harshavardhana <[email protected]>
all: fix typos

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

bdbef114bbe21557cae4acfa6e23291dae6696b1 authored almost 9 years ago by Shawn Smith <[email protected]>
net/http: fix typo in doc string

Fixes #14475.

Change-Id: I1b5b0a9793a417572ec55f313185d03ad5ae9d01
Reviewed-on: https://go-revi...

89bd3be00db168eb9232102f57206d5c3a0392dc authored almost 9 years ago by Robert Griesemer <[email protected]>