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/httputil: eliminate duplicate alloc/copy in ReverseProxy

This commit elimates the request allocation and shallow copy duplication
already done by req.Wit...

55cfb3ab11be16e08817a4eb8d87bfd0f2812325 authored almost 8 years ago
net/http: remove check for null bytes in Dir.Open()

The syscall package checks for null bytes now.
This was added in https://codereview.appspot.com/...

d68d3a75c291f5456e31e59e03c12b1d68e1f735 authored almost 8 years ago
net/http: don't send body on redirects for 301, 302, 303 when GetBody is set

The presence of Request.GetBody being set on a request was causing all
redirected requests to ha...

24a593e3039157aa183fab67333114b9df6914f0 authored about 8 years ago
net/http: fix a nit

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

768c019b527f7cc5bb37818e16e0d78b35beca9f authored about 8 years ago
net/http: skip TestServerHijackGetsBackgroundByte on Plan 9

CL 5232 added TestServerHijackGetsBackgroundByte, which is failing
on Plan 9, because CloseWrite...

325f2c650fbdf63171a5e36f035a1bb6ef6152e2 authored about 8 years ago
net/http: skip TestServerHijackGetsBackgroundByte_big on Plan 9

CL 35234 added TestServerHijackGetsBackgroundByte_big, which is failing
on Plan 9, because Close...

3a90c1de5c55825f8491e0b24b23643bfbf645b5 authored about 8 years ago
net/http: add another hijack-after-background-read test

Follow-up test from Ian's comments in https://golang.org/cl/35232
after submit.

Change-Id: Ifa5...

b5c605487c48c8e6cebbc6117aea0194b8e85a81 authored about 8 years ago
net/http: make sure Hijack's bufio.Reader includes pre-read background byte

Previously, if the Hijack called stopped the background read call
which read a byte, that byte w...

27ce6786f2c9d51115f846d7f69dce6ea135e75b authored about 8 years ago
net/http: deflake TestRetryIdempotentRequestsOnError

The test was previously an integration test, relying on luck and many
goroutines and lots of tim...

9ebb7d07081d889d15c757b8892d425bb63ec9aa authored about 8 years ago
net/http: preserve original HTTP method when possible

In Go1.7, a 301, 302, or 303 redirect on a HEAD method, would still
cause the following redirect...

5f402aa54fb45e75dc343603dcf5500817134f94 authored about 8 years ago
net/http: don't do a background read if we've already done one

Fixes #18535

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

1712bc42966049b8fc0477b1dd6c3ed054442160 authored about 8 years ago
net/http: better failure in TestTransportPersistConnLeak

If one of the c.Get(ts.URL) results in an error, the child goroutine
calls t.Errorf, but the tes...

e96c3b560176c7425857b8d5695634cc8fba0499 authored about 8 years ago
net/http/httputil: make DumpRequest and DumpRequestOut recognize http.NoBody

Fixes #18506

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

4596963596edc55a40091d6a89c8930662cce94c authored about 8 years ago
net/http: make Server cancel its ReadTimeout between requests

Fixes #18447

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

441540b435cb8aeb7af1936098f964044b92f47e authored about 8 years ago
net/http: update bundled http2 for Server WriteTimeout change

Updates http2 to x/net/http2 git rev 8fd7f25 for:

http2: clear WriteTimeout in Server
h...

11e7cfb7cf399b6fa46da007abe58dfdc196e93b authored about 8 years ago
net/http: add test for http2 Server WriteTimeout

Current handling of WriteTimeout for http2 does not
extend the timeout on new streams. Disable t...

44282e3b117811afb2816eca43c08924720afa3c authored about 8 years ago
net/http/httputil: clarify the contract on ReverseProxy's Director.

Avoid potential race conditions by clarifying to implemntors of the
ReverseProxy interface, the ...

94b1f9350f93ecccec40f2960a631225d69d246c authored about 8 years ago
net/http: restore Transport's Request.Body byte sniff in limited cases

In Go 1.8, we'd removed the Transport's Request.Body
one-byte-Read-sniffing to disambiguate betw...

249696f7b8ce56deeccdae42b76db0ceb170a12b authored about 8 years ago
net/http, doc: more redirect documentation

Updates #18347
Updates #9348

Change-Id: I115203b0be3eb2e7e269ff28e2f3c47eeca86038
Reviewed-on: ...

c01e5b5e855953182f017d86f21e97f447da66ce authored about 8 years ago
net/http: deflake TestServerTimeouts maybe

I haven't been able to reproduce this one, but change a few suspect
things in this test. Notably...

a85fac9b2832a0fddb06051f09d09916ac978838 authored about 8 years ago
net/http: update bundled http2

Updates bundled x/net/http2 to git rev 1195a05d for:

http2: fix incorrect panic
https:/...

652e21d1e66d39cf7870aba58b18db65aecb6f1a authored about 8 years ago
net/http/httptrace: clarify WroteRequest may be called multiple times

Updates #18305

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

3c8dde9f05823e70c17ce2e6dc70b22530ee73c3 authored about 8 years ago
net/http: deflake TestClientTimeout_Headers_h2 on Windows

The client code was using time.Now() (wall time) to determine whether
the cause of a non-nil err...

d50d23313e63ebde6ca3461190a0514c7db2693a authored about 8 years ago
net/http: update some comments

And move some code to make control flow more obvious.
No functional change.

Change-Id: Iefaa96f...

87cb495669743b88d8cee48fd09c0bfdd3438bef authored about 8 years ago
net/http: don't retry Transport requests if they have a body

This rolls back https://golang.org/cl/27117 partly, softening it so it
only retries POST/PUT/DEL...

d6bfe3ce580fe7f89c26c85efb41be56b8e32ad8 authored about 8 years ago
net/http: update bundled http2

Updates bundled x/net/http2 to git rev 8dab9293 for:

http2: make Transport retry on server'...

40bbae268e503353ed4d1a5c8ffe545b4ad652e2 authored about 8 years ago
net/http: fix typo in Request.GetBody's doc string

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

ed1ca4c87b749f8c1e193332750096042b8ce7ed authored about 8 years ago
net/http: revert change making NewRequest set ContentLength -1

The introduction of NoBody and related body-peeking bug fixes also
added a "cleanup" of sorts to...

80158ae312a45e91742ec9de4dd289fd57b7f4e1 authored about 8 years ago
net/http: teach NewRequest that NoBody has ContentLength zero

NoBody is new in Go 1.8.

Found while investigating #18117

Change-Id: I6bda030f358e2270f090d108...

8997d806827025ae3af376043b43c9988ee7ef53 authored about 8 years ago
net/http: clarify Request.Context's lifetime

Reverts https://golang.org/cl/23672 and tweaks the text to clarify
HTTP/2 request cancelations a...

ef7675da4129edf9bc4862e447c50960c017c9ff authored about 8 years ago
net/http: document how headers are forwarded by Client

Fixes #18096

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

a0b76b28c274c87a64333b481a2058bc136d7715 authored about 8 years ago
net/http: fix test TestServeMuxHandlerRedirects

The code was intended to test that mux handler should redirect at
most once, but the added loop ...

15f02519da3a212e15f6447ebaf1098a2ee2ba64 authored about 8 years ago
net/http: remove logging on bad client requests

As discussed in #18095 the server should not log for bad user input.

Change-Id: I628a796926eff3...

b8190813ddb71d292341670b46ad7c09f924326a authored about 8 years ago
net/http/httptest: fix typo in doc comment

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

42cbad8059722b4faaf2ebec88ba930c42e15131 authored about 8 years ago
net/http, net/http/httptest: cross-reference the two NewRequest funcs

Updates #18082

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

7f5fe74bc00671c54a4c46e3fd0cdc238c1e254a authored about 8 years ago
net/http: document restrictions on ETag as expected by ServeContent

Fixes #18054

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

a410dd82826cfcb1794f0aad74c859854d2626dd authored about 8 years ago
net: document that Header.Get key is case insensitive

Document that key in Header.Get(key) is case insensitive in
http.Header, mail.Header, textproto....

b96eb5058fc4ae45365c74dc64331fcd976109cf authored about 8 years ago
net/http: fix receiver for Server.Shutdown and Server.Close

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

40639e0261d39aeb086f4f97b20a179271809c85 authored about 8 years ago
net/http: fix parallel tests using global DefaultTransport

When I added t.Parallel to some tests earlier, I overlooked some using
the global "Get" func, wh...

f737cdc0a89f82aebe86dd4930d88338ea523ef3 authored about 8 years ago
net/http: skip TestLinuxSendfile on mips64 for now

See issues for details. We can expand this test during the Go 1.9
cycle.

Updates #18008

Change...

29319d7584bcb35d9fed415ce47bc8b1ae1edbec authored about 8 years ago
net/http: maybe fix TestLinuxSendfile on mips64

Updates #18008

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

46d0ef5c46c9278a28e7c4144476884131462e3a authored about 8 years ago
net/http: deflake TestClientTimeout

Should fix flakes like:

https://build.golang.org/log/c8da331317064227f38d5ef57ed7dba563ba1b38

...

a0c0ab84cccf8602faaa549778b83d774ad2c711 authored about 8 years ago
net/http: deflake TestInterruptWithPanic_nil_h2, again

Updates #17243

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

75c10298a5e1a5cafbc9ab268879c9cf0cfc9411 authored about 8 years ago
net/http: fix a typo in test

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

2c5fb97613e8a99db1f53d194d5271267c65c5b6 authored about 8 years ago
all: don't call t.Fatal from a goroutine

Fixes #17900.

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

a5a16cf5a1bff3086cac895f3546236082b2c022 authored about 8 years ago
net: add test that TCP Close unblocks blocked Reads

I guess this was fixed at some point. Remove a skipped test in
net/http and add an explicit test...

e17aa4f9c59123e8a3a1c795377a85683d7bd224 authored about 8 years ago
net/http: update bundled http2 for write scheduling order fix

Updates x/net/http2 to x/net git rev 00ed5e9 for:

http2: schedule RSTStream writes onto its...

985194492e6bf34fa75e2db65bc8cfb6de52df1a authored about 8 years ago
net/http: update bundled http2, add TestServerKeepAlivesEnabled h1/h2 tests

Updates x/net/http2 to x/net git rev 6dfeb344 for:

http2: make Server respect http1 Server's...

899b8018f3f5dd93bc79e15b332ced468d392ee8 authored about 8 years ago
net/http: enable timeout tests on Plan 9

Deadlines have been implemented on Plan 9 in CL 31521.

Enable the following tests:

- TestServ...

cea3eb59fe77b1955122b8813fef253fb48a7777 authored about 8 years ago
net/http: fix error message in TestClientWriteShutdown

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

2aaf1ea27f9225d0bfea54a5c9ac6d7873f277d4 authored about 8 years ago
net/http/httptest: remove workaround on Plan 9

This issue has been fixed in CL 31390.

Change-Id: I0c2425fd33be878037d10d612a50116a7b693431
Rev...

0b2f4dfb4b2a608eafc600fb8fa3f53865946948 authored about 8 years ago
net/http: make Server respect shutdown state after handler finishes

If the Server's Shutdown (or SetKeepAlivesEnabled) method was called
while a connection was in a...

fc365e65de2573dc2a0b613ff241169efc4a99ad authored about 8 years ago
net/http: make Server log on bad requests from clients

Fixes #12745

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

142ebede4da2819e7a3d0fb7801f635517273de6 authored about 8 years ago
net/http: deflake new TestInterruptWithPanic_h2

TestInterruptWithPanic_h2 was added yesterday in
https://golang.org/cl/33099 and https://golang....

98221a2190fd73247f9079feff2cf4886660034a authored about 8 years ago
all: fix vet nits

Fixes these complaints from vet:

cmd/compile/internal/gc/noder.go:32: cmd/compile/internal/synt...

930d7a521ad5ebeb37411b0c0f1812ca842e5b54 authored about 8 years ago
net/http: document relation and interaction with golang.org/x/net/http2

Fixes #16412

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

1d1bf1862b3d5ecb49339203ca89229956f48b7c authored about 8 years ago
net/http: update bundled http2 for ErrAbortHandler support, document it more

Updates http2 to x/net/http2 git rev 0e2717d for:

http2: conditionally log stacks from panic...

8bb2ddeafa9091db69db11d3413f018194cc1ccd authored about 8 years ago
net/http: deflake TestClientTimeout

This test was only enabled by default today so it hasn't been hardened
by build.golang.org. Welc...

ab4478b817a939c5fcd393d38553486c4c78881f authored about 8 years ago
net/http: update Transport doc example to not disable http2

The old Transport example ended up disabling HTTP/2.

Use a better example.

Fixes #17051
Fixes ...

548bd49a74abfa251ae7ca70586a754ae175e69a authored about 8 years ago
net/http: update bundled http2

Updates http2 to x/net/http2 git rev 9ef22118 for:

http2: fix CloseNotify data race
https...

b40a49c1a97c641517ce9a37a6e5005f82dbd65e authored about 8 years ago
net/http: add ErrAbortHandler, make Server quiet if used as panic value

Add an explicit way for Handlers to abort their response to the client
and also not spam their e...

751663ed7bd80f8e1d9a3e4060e7a8d6eb9a53e5 authored about 8 years ago
net/http: document that Server.Close and Shutdown don't track hijacked conns

Fixes #17721

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

5df1f532d449882cb3739447e797ccc895a440f0 authored about 8 years ago
net/http: document and deprecate type and errors of type ProtocolError

Clean up & document the ProtocolError gunk.

Fixes #17558

Change-Id: I5e54c25257907c9cac7433f7a...

1c7ba0bf58b45e48c768c23a65a1e98247684c93 authored about 8 years ago
net/http: fix documentation on Server.TLSNextProto controlling http2

Server.TLSNextProto being nil is necessary but not sufficient but
http2 being automatically enab...

1f327f6f55faf6da3b7b49d219c242a9a7526df4 authored about 8 years ago
net/http: don't wrap request cancellation errors in timeouts

Based on Filippo Valsorda's https://golang.org/cl/24230

Fixes #16094

Change-Id: Ie39b0834e220f...

941292e4c9f4affb53e437c891afe5f146a35a17 authored about 8 years ago
net/http: fix Server.Close double Lock

Fixes #17878

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

0c37888a0889744cbca19521661d6ae52c0d7de1 authored about 8 years ago
net/http: deflake TestIdleConnH2Crash

Fixes #17838

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

8847dd0da069766b60b20b8180d9588a230691eb authored about 8 years ago
net/http: deflake TestClientRedirects

Fix another case of a parallel test relying on a global variable
(DefaultTransport) implicitly.
...

55bec97b9e12517c673fd311fa7270c9a51764ad authored about 8 years ago
net/http/fcgi: fix link to protocol docs

Fixes #17815

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

e1b99ca84535765470b22ffb0db4e406d89247be authored about 8 years ago
net/http: deflake TestLinuxSendfile

Fixes #17805

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

07101ef4ae6a0c17b0287d14576b4f2375e68f5b authored about 8 years ago
net/http: deflake TestClientRedirectTypes and maybe some similar ones

A few tests were using the global DefaultTransport implicitly.
Be explicit instead. And then mak...

18a9431af8874345a50c007e84814123aa080fe1 authored about 8 years ago
net/http: move extra redirect logic for 307/308 into redirectBehavior

Follow up of CL https://go-review.googlesource.com/32595.

Change-Id: I2b3ff7e6b2c764bb6bc5e9aa6...

a6ad51bfa2a4769762f8ec5698a25f5ef8f7f255 authored about 8 years ago
net/http: speed up tests, use t.Parallel when it's safe

Before: 8.9 seconds for go test -short
After: 2.8 seconds

There are still 250 tests without t....

9b811e15313249f77adcfd5d44c0a9e2c63639b6 authored about 8 years ago
net/http: fix type name in comment

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

ecc95b4efb35b035268bbf5a45e2aa6755856bd5 authored about 8 years ago
net/http: tweak the new Client 307/308 redirect behavior a bit

This CL tweaks the new (unreleased) 307/308 support added in
https://golang.org/cl/29852 for #10...

7b07dc62ae81ad1293b538319fa1cc9411ef1b84 authored about 8 years ago
net/http: support If-Match in ServeContent

- Added support for If-Match and If-Unmodified-Since.
- Precondition checks now more strictly fo...

bb664bc1af143100bf84960aa253b0115f61ccb7 authored about 8 years ago
net/http: deflake TestServerSetKeepAlivesEnabledClosesConns

Fixes #17754
Updates #9478 (details in here)

Change-Id: Iae2c1ca05a18ed266b53b2594c22fc57fab33c...

4253a52f9c402d1397c599e83d32ed9f2539dd56 authored about 8 years ago
net/http: update bundled http2 to fix test flake

Updates http2 to x/net/http2 git rev 569280fa for:

http2: fix over-aggressive ignoring of fr...

00640996637261cf2115d0fb05b6a6f1823b0a23 authored about 8 years ago
net/http: update bundled http2

Update bundled x/net/http2 to x/net git rev 6c4ac8bd for:

http2: fix Transport race sending ...

a2a0711e25ec34c008575b5b14e40e77b7211b93 authored about 8 years ago
net/http: make Transport reject URLs with bogus ports with non-digits

Fixes #14353

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

99a7b9d1420d7253136c1562f4110c8c59c6972c authored about 8 years ago
net/http: add Transport.ProxyConnectHeader to control headers to proxies

Fixes #13290

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

6be4a243c2e5782113fa31b10fd30282b52bd9b7 authored about 8 years ago
net/http, net/http/httptest: make http2's TrailerPrefix work for http1

Go's http1 implementation originally had a mechanism to send HTTP
trailers based on pre-declarin...

b668657db5ca449a4220a1248a72bc07a4863fd4 authored about 8 years ago
net/http/httputil: add ModifyResponse to reverseProxy

Adds ModifyResponse, an optional func to ReverseProxy
that modifies a response in the backend, r...

4bbf10dcd3812e36a8ef27b2136b97ecf7c785df authored about 8 years ago
net/http: add Server.Close & Server.Shutdown for forced & graceful shutdown

Also updates x/net/http2 to git rev 541150 for:

http2: add support for graceful shutdown of ...

0a5013140f9864c8afda3db9fe753f24bc26faa9 authored about 8 years ago
net/http: returned typed error on Transport proxy dial

Fixes #16997

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

389e69f0412558cf3dad64a101acd36db37f84c9 authored about 8 years ago
net/http: handle 3xx redirects properly

Provides redirection support for 307, 308 server statuses.
Provides redirection support for DELE...

24ece1eb8f02313a1c599f84ac2954b45f283221 authored about 8 years ago
net/http: update bundled http2 for IdleTimeout config sync change

Updates http2 to x/net git rev 76c1a11e for:

http2: initialize Server.IdleTimeout from htt...

2ed2b323d92c8151fb2a8af9338e0ad6cfd94796 authored about 8 years ago
net/http: fix cookie Expires minimum year to 1601 instead of Epoch year 1970

Following RFC 6265 Section 5.1.1.5, ensure that the minimum
year for which an Expires value is v...

702d574b0c7694455b0e9ed8dddab49102ba5d7d authored about 8 years ago
net/http/httptrace: refer http.Client users to the blog post

Fixes #17152.

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

2ad4fc1ce093464087670af575353065c2a9ee72 authored about 8 years ago
net/http: update bundled http2

Updates http2 to x/net git rev b626cca for:

http2: implement support for server push
ht...

3b2398ba5551134df6b0f341283a5b8886995c1c authored about 8 years ago
net/http/httptest: doc tweaks

From lost-in-flight comments on CL 32190.

Change-Id: I2029cbac6d24b5944a796b359080011ec3a8da92
...

5bfe3d0ce73134ade383b539011a9e431a637e62 authored over 8 years ago
net/http/httptest: add more docs on ResponseRecord fields

Fixes #16717

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

a0cad78e071a513bf2b567dc9276bfdd85c60438 authored over 8 years ago
net/http: Improve docs for Response.ParseForm

- Removes a subject-verb disagreement.
- Documents that PATCH requests also populate PostForm.
-...

4e69dcfdbbed2ab5204588fcf52cd3a48ef82ca2 authored over 8 years ago
net/http: add Server.ReadHeaderTimeout, IdleTimeout, document WriteTimeout

Updates #14204
Updates #16450
Updates #16100

Change-Id: Ic283bcec008a8e0bfbcfd8531d30fffe710525...

73d5ad165d06d5d049642de6f0e43ff5590681c4 authored over 8 years ago
net/http: gofmt -w -s

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

43f2db103e661f30997c88026d5424e216f64894 authored over 8 years ago
net/http: fix redirect logic to handle mutations of cookies

In the situation where the Client.Jar is set and the Request.Header
has cookies manually inserte...

02e8dfeb74d2b67ed7aaf06244655b5d79f5ca33 authored over 8 years ago
net/http: add an interface for server push

This interface will be implemented by golang.org/x/net/http2 in
https://go-review.googlesource.c...

a011231ccc250e4453c95731b2f7228a55379094 authored over 8 years ago
net/http/httputil: log err encountered during reverseproxy body copying

Fixes #16659

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

049663f068275698576b0e21d473f7fd61f50d95 authored over 8 years ago
net/http: add NoBody, don't return nil from NewRequest on zero bodies

This is an alternate solution to https://golang.org/cl/31445

Instead of making NewRequest retur...

cff0f4ad29d8b247bac0a8aaa16ed7a3a5227c42 authored over 8 years ago
net/http: drop custom tls.Config cloning code.

Now that we have the Clone method on tls.Config, net/http doesn't need
any custom functions to d...

2a140c473bcb4f3f6a7e8fe034a25029cf76f368 authored over 8 years ago