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: zeroLengthPostAndResponse test now in http2 mode

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

320b9b128cb6da840633d199ea5eda0e853a4284 authored about 9 years ago by Emmanuel Odeke <[email protected]>
net/http: testStreamingGet now in http2 mode

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

e48089171505663adca7b6bff8ad11cfc850d1ff authored about 9 years ago by Emmanuel Odeke <[email protected]>
net/http: update bundled http2 copy

Updates golang.org/x/net/http2 to git rev 438097d76

Fixes #13444

Change-Id: I699ac02d23b56db3e...

edf70b8ed47b40b5b391fc42cf697f8b0dfdb321 authored about 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: sniffWrite test also in http2 mode

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

df28c7d0156b1d3a67f104de2c811715fde3b454 authored about 9 years ago by Emmanuel Odeke <[email protected]>
net/http: make TestRedirect also test in http2 mode

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

bec4fa5566a2674fe250b0d7d38373ea0b1fbc5c authored about 9 years ago by Emmanuel Odeke <[email protected]>
net/http: sniff tests ported to h2

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

b6330a66c2ec911fa942b231610ff4d7b2be0e5d authored about 9 years ago by Emmanuel Odeke <[email protected]>
net/http: TimeoutHandler test ported to HTTP/2

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

3e43495f4c1af412a4db0a9f534505daacb3dd86 authored about 9 years ago by Emmanuel Odeke <[email protected]>
net/http: testHeadResponses port for h2

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

5b6cf9e96ccfb3e97bd8dded96f1ba1a566d7e0b authored about 9 years ago by Emmanuel Odeke <[email protected]>
net/http: Connection:close test is h1 specific

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

00bfd0ab61c88d7b04f008d461f6af24b6a5283c authored about 9 years ago by Emmanuel Odeke <[email protected]>
net/http: test max request body size against both HTTP/1 and HTTP/2

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

70db6793d79b1e59fbf695d7f425033322e79f5e authored about 9 years ago by Burcu Dogan <[email protected]>
net/http: convert TestSetsRemoteAddr to use clientServerTest

This is an example of converting an old HTTP/1-only test to test
against both HTTP/1 and HTTP/2....

73ddb01800b43a5daa86bfb41f3dbb27394131f0 authored about 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: deflake a non-short test, clean up export_test.go

This makes TestTransportResponseCloseRace much faster and no longer
flaky.

In the process it al...

cdf58c00878d73c5ab25d2180cfa1c274346e08d authored about 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: make Client follow redirects even if Request.Method is empty

Fixes #12705

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

1e94d4cfac75e7475de861d47f474e67c00fe4b9 authored about 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: enable HTTP/2 on all Transports, not just the DefaultTransport

This mirrors the same behavior and API from the server code to the
client side: if TLSNextProto ...

00e67e91e6d204d9e665e5f7d19f4969513a5f93 authored about 9 years ago by Brad Fitzpatrick <[email protected]>
net/http/httputil: add package level examples

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

33559c213e158f83112417e7a5e5613cb3052253 authored about 9 years ago by Carlos Cirello <[email protected]>
net/http: retry idempotent HTTP reqs on dead reused conns

If we try to reuse a connection that the server is in the process of
closing, we may end up succ...

ca02201d509b3608b61b04fcb43e344adefb5c24 authored about 9 years ago by Blake Gentry <[email protected]>
net/http: update h2_bundle.go

Updates to x/net rev 195180cf
(golang.org/cl/17134, http2: merge duplicate Transport dials)

Cha...

7bd4bea3e70fd23e7677dea796ea135c342272b9 authored about 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: define File as an io.Seeker

Fixes #13421.

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

24a4da5fd00a72347d2ea94e90e77468ed376d20 authored about 9 years ago by Burcu Dogan <[email protected]>
net/http: add test that automatic gzip works for HTTP2's Transport

And updates h2_bundle.go with the fix from x/net/http2.

Fixes #13298
Updates #6891

Change-Id: ...

80b306dbc4b2a6dc3dd903a86439bb1df4f134a2 authored about 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: more HTTP/2 tests and fixes

This compares the behavior of server handlers and the net/http
Transport in both HTTP/1 and HTTP...

c4d7f0137a4c30992bbd1016a0cd4131f886e37b authored about 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: start of making all relevant tests test both http1 and http2

This CL adds skipped failing tests, showing differences between HTTP/1
and HTTP/2 behavior. They...

71a8e6c3c3c35c4deb974d3aadb9d2997eeb224e authored about 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: accept empty method in Transport again

Fix regression from https://golang.org/cl/16829 ("require valid methods
in NewRequest and Transp...

8e8896b7b5f790d1c50789f8d33c59b39339f991 authored about 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: add/update mp4 sniffing

Completes sniffing for mp4 signature according
to the spec at:
https://mimesniff.spec.whatwg.o...

4f29244512e46aad34cd1573acf6e94d76b5e0b3 authored about 9 years ago by Emmanuel Odeke <[email protected]>
net/http: detect when an HTTPS client contacts an HTTP server

Inspect the crypto/tls error to recognize this case and give a more
helpful error.

Fixes #11111...

b9b7dde7dc2314dc4fe6f2af7073c832bdac901e authored about 9 years ago by Caleb Spare <[email protected]>
net/http: require valid methods in NewRequest and Transport.RoundTrip

Fixes #12078

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

127b7dde8e7291c812c4b6ae9fc05e35555014c4 authored about 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: add method constants

Fixes #12078

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

20b15c6e30ee2763091754861f0a130add9f447e authored about 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: fixed TestLinuxSendfile for mips64

mips64 strace doesn't support sendfile64 and will error out if we
specify that with `-e trace='....

8f79aa76d595630e9edac72699cc572c5a1ab4c5 authored about 9 years ago by Yao Zhang <[email protected]>
crypto/tls: don't send IP literals as SNI values.

(This relands commit a4dcc692011bf1ceca9b1a363fd83f3e59e399ee.)

https://tools.ietf.org/html/rfc...

bbe4aae0f3d2fd9faf43aae8f2d7e9a8feb421ca authored about 9 years ago by Adam Langley <[email protected]>
net/http: Show more data for unsolicited response

Show more than one character when we recieve a unsolicited
response on an idle HTTP channel. Sho...

a8b19e7090ef09b743636bc807251c93891401f7 authored about 9 years ago by Erik Dubbelboer <[email protected]>
net/http/internal: ignore chunk-extension when reading chunked encoding bodies

Fixes #13135

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

4ad2596fb95dd8fb14c425f816c0603e3adf964d authored about 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: update bundled http2 revision

Updates to git rev 042ba42f (https://golang.org/cl/16734)

This moves all the code for glueing t...

99926a32231545a8504817e1245fa8668aa238ae authored about 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: update http2 bundle

To rev a179abb (handle Transport PING frames).

Change-Id: I6e1eef2c9586c23f231803d9364d92124872...

6bbb994fe070256c5a05bcb583edd023c63b2758 authored about 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: update http2 bundle to rev d62542

Updates to use new client pool abstraction.

Change-Id: I3552018038ee8394d313d3253af337b07be211f...

e5f048ab3424a539c75279ab3b8100595ba4cdaa authored about 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: enable HTTP/2 support in DefaultTransport

The GODEBUG option remains, for now, but only for turning it off.
We'll decide what to do with i...

05d45458c5a97c3d1c260797affc33a27880eccb authored about 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: register HTTP/2 before listening in ListenAndServe

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

f6b815ad0dd6bb298f2cb589949171fbdb7000ab authored about 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: don't panic after request if Handler sets Request.Body to nil

The Server's server goroutine was panicing (but recovering) when
cleaning up after handling a re...

dadeb5213e81ece024f6b4181e004d2ac3cbc8ac authored about 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: do not listen on public network during HTTP/2 test

Avoids Mac firewall box.

Change-Id: I000e421fa9639612d636b6fa4baf905459c5aeb2
Reviewed-on: http...

6568d526e2bfa4cad846c8f7ccddb7763cfa7686 authored about 9 years ago by Russ Cox <[email protected]>
net/http: update x/net/http2

Updated bundle of golang.org/x/net/http2 to rev c95266

Change-Id: Id6df66a8f4eadd6a100f359fd6ca...

10124533dcb54d15950b99b9fff30b66c40248dc authored about 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: extra documentation for Redirect and RedirectHandler

Errors with http.Redirect and http.StatusOk seem
to occur from time to time on the irc channel.
...

3d7734cbcd23b8f4f0f6b6e63441387aed4ef575 authored about 9 years ago by Taru Karttunen <[email protected]>
net/http/httputil: add hook for managing io.Copy buffers per request

Adds ReverseProxy.BufferPool for users with sensitive allocation
requirements. Permits avoiding ...

46ce20cab0e6676c7dfc17a7713eb4a03f04cb19 authored about 9 years ago by Brad Fitzpatrick <[email protected]>
net/http/httptest: close conns in StateNew on Server close

This part got dropped when we were debating between two solutions
in https://golang.org/cl/15151...

c4c7b32e99f7b0c3c4584ab708b1ec3baa9eebe4 authored about 9 years ago by Brad Fitzpatrick <[email protected]>
net/http/httptest: fix comment regarding certificate expiry

In earlier versions of Go, times were only encoded as an ASN.1 UTCTIME and
crypto/tls/generate_c...

e0480a7b9142e9368bbdbbc5362a8a055bdc9650 authored about 9 years ago by Joel Sing <[email protected]>
net/http: update copy of http2

Updates to x/net git revision 9946ad7

Change-Id: I95c03daf382667002a5b22f184bd9b7d18144913
Revi...

ee2062b242a18e56b4d1e8c9d33d38c0c7c0f888 authored about 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: return error from Serve if http2.ConfigureServer returns an error

In https://golang.org/cl/15860 http2.ConfigureServer was changed to
return an error if explicit ...

4ade09245c5cbe6cdee1dbae77f0e152311f3407 authored about 9 years ago by Brad Fitzpatrick <[email protected]>
net/http/httptest: detect Content-Type in ResponseRecorder

* detect Content-Type on ReponseRecorder.Write[String] call
if header wasn't written yet, Cont...

fd0e5d924f7ff03e5fe4ba4580a61703aa607c3d authored about 9 years ago by Nodir Turakulov <[email protected]>
net/http: add Transport.TLSNextProto, ErrSkipAltProtocol

This is the start of wiring up the HTTP/2 Transport. It is still
disabled in this commit.

This ...

fa96ee26f01ce8f931a9d92c8fcbf69341eddf32 authored about 9 years ago by Brad Fitzpatrick <[email protected]>
net/http/httptest: change Server to use http.Server.ConnState for accounting

With this CL, httptest.Server now uses connection-level accounting of
outstanding requests inste...

9933b73608d9c3ab7ad36f721427c8841fe85463 authored about 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: fix typo in serve_test.go

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

ed702e5393860afa55d02a7416c56d7590e7e039 authored about 9 years ago by Nodir Turakulov <[email protected]>
net/http: use the correct error variable in serveFile

It was generating the wrong error message, always defaulting to "500
Internal Server Error", sin...

ce64e578fe476b782e20c2d6ea11cc70c97c2cb9 authored about 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: Client support for Expect: 100-continue

Current http client doesn't support Expect: 100-continue request
header(RFC2616-8/RFC7231-5.1.1)...

e5aa8bcb974cda848ac526f8d092316282605f14 authored about 9 years ago by Yasuharu Goto <[email protected]>
net: unblock plan9 TCP Read calls after socket close

Fixes #7782
Fixes #9554
Updates #7237 (original metabug, before we switched to specific bugs)
Up...

def615cde4d3d564751c1cfc592c000004c31e9e authored about 9 years ago by Brad Fitzpatrick <[email protected]>
net/http/cgi: optimize internal function removeLeadingDuplicates a bit

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

41255cb8a9e0cdb727f0ee7ef7e7922b6ba60b34 authored about 9 years ago by Brad Fitzpatrick <[email protected]>
net/http/httputil: clarify where DumpRequest(Out)? can be used.

The clues to this were already there, but as a user I was still unsure.
Make this more explicit....

c5efe79b3380f62f705c662057553e4fbf4abc5c authored about 9 years ago by Aaron Jacobs <[email protected]>
net/http: enable automatic HTTP/2 if TLSNextProto is nil

This enables HTTP/2 by default (for https only) if the user didn't
configure anything in their N...

ae5fc62e5439bd0ce63748a71149a027801984a1 authored about 9 years ago by Brad Fitzpatrick <[email protected]>
vendor: import golang.org/x/net/http2

golang.org/x/net/http2 becomes net/http/h2_bundle.go (using adonovan's
x/tools/cmd/bundle tool),...

2e1289200eab030ed010e53764a902756fcce0c4 authored about 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: don't hang if RemoteAddr() blocks

The PROXY protocol is supported by several proxy servers such as haproxy
and Amazon ELB. This p...

ca1518862de28783f7824dc85ecdecb76157df47 authored about 9 years ago by David Glasser <[email protected]>
net/http/cgi: make provided Env override even system env vars

Allow all CGI environment settings from the inherited set and default
inherited set to be overri...

47e0f80abcd07face5d658ff5714022de25e39ae authored about 9 years ago by Steven Hartland <[email protected]>
net/http: ignore Transfer-Encoding for HTTP/1.0 responses

Fixes #12785

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

584023d2736ddbfaddb09f52369565169f4740b7 authored about 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: export the "new" error codes from RFC 6585

These were proposed in the RFC over three years ago, then proposed to
be added to Go in https://...

b0a1ea0a8d8789ec447226ef4117e32c2d46f1f6 authored about 9 years ago by Brad Fitzpatrick <[email protected]>
net/url: make *url.Error implement net.Error

Fixes #12866

net/http.Client returns some errors wrapped in a *url.Error. To avoid
the requirem...

c4a0dd7beb6b003385c7556cbf340a5650db804a authored over 9 years ago by Dave Cheney <[email protected]>
net/http/httputil: clarify NewSingleHostReverseProxy's Host header behavior

Fixes #10342

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

f62d288183c0bd4b3bb17812e8c6c6562f28cdc2 authored over 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: add response body to 413 and 400 errors

The existing serve() method returns a zero-length response body when
it encounters an error, whi...

1e0eca14756c2664c2194ebf05cde6c053d52a41 authored over 9 years ago by Kenny Grant <[email protected]>
net/http/fcgi: fix panic with malformed params record

As stated in FastCGI specifications:

FastCGI transmits a name-value pair as the length of the n...

24a3aaca30bbf4bb8d1df7f0c099ccaa6bdc4162 authored over 9 years ago by Didier Spezia <[email protected]>
all: use one 'l' when cancelling everywhere except Solaris

Fixes #11626.

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

4f3b1730f2d63663beb30b612c1eb80e57c66279 authored over 9 years ago by Rob Pike <[email protected]>
net/http: optimize some io.Copy calls by reusing buffers

Optimize two calls of io.Copy which cannot make use of neither
io.ReaderFrom nor io.WriterTo opt...

8ab26e537d3dcd0eeaffd973188643fe13b2e5ea authored over 9 years ago by Artyom Pervukhin <[email protected]>
net/http/httptest: ResponseRecorder.WriteString

Fixes #11000

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

343906eb3882325aecaa82e6fb528d45bb56a65f authored over 9 years ago by Nodir Turakulov <[email protected]>
net/http: make FileServer sort directory entries

Fixes #11879

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

d4f6a7944718fc00003c24c81d4e74d832a02145 authored over 9 years ago by Dan Peterson <[email protected]>
net/http/httputil: permit nil request body in ReverseProxy

Accepting a request with a nil body was never explicitly supported but
happened to work in the p...

aa09355266df9d764fdb7842fc2ccb81e6b69d8e authored over 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: remove always true comparison

byte is unsigned so the comparison against zero is always true.

Change-Id: I8fa60245972be362ae9...

cc6b09db521afc29196c138637a76b641176f4b6 authored over 9 years ago by Todd Neal <[email protected]>
all: fix some vet-caught formatting errors, mostly but not only in tests

Could go in 1.5, although not critical.
See also #12107

Change-Id: I7f1608b58581d21df4db58f0db6...

f1f85bd35d2e8e018f33c93ff5e50d3af7930fcf authored over 9 years ago by Rob Pike <[email protected]>
net/http: document that [ListenAnd]Serve always returns a non-nil error

Fixes #12229

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

dc34bd179a5081f87a444636654a013764c04443 authored over 9 years ago by Andrew Gerrand <[email protected]>
net/http: fix races cloning TLS config

Found in a Google program running under the race detector.
No test, but verified that this fixes...

e4cf2231671ce510e82ef80b94a5bb5c3f41dfdb authored over 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: close server conn after broken trailers

Prior to this change, broken trailers would be handled by body.Read, and
an error would be retur...

5e29c1a02555300797250b30df04b9415eb65c11 authored over 9 years ago by Jed Denlea <[email protected]>
net/http: deflake TestZeroLengthPostAndResponse

It was failing with multiple goroutines a few out of every thousand
runs (with errRequestCancele...

e56337b7a552fc1317bc14bb8b4d6a8298af504e authored over 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: fix server/transport data race when sharing the request body

Introduced in https://go-review.googlesource.com/12865 (git rev c2db5f4c).

This fix doesn't add...

f9909000582c8740404430b02c59b3f907147c9a authored over 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: close server conn after request body error

HTTP servers attempt to entirely consume a request body before sending a
response. However, whe...

b9d95d3fefcf8e64b6017c5538b33c5321f2c85d authored over 9 years ago by Jed Denlea <[email protected]>
net/http: fix SetKeepAlivesEnabled receiver name

This makes the receiver name consistent with the rest of the methods on
type Server.

Change-Id:...

ed0c360bd2685a623b33e84029437e8e18342e69 authored over 9 years ago by Carl Jackson <[email protected]>
net/http: disable new flaky TestTransportCancelBeforeResponseHeaders test

I'll rewrite this later. It's apparently dependent on scheduling order.
The earlier fix in git r...

dcf963d1e1506715cbcb1ef5988d21a6a88d8b5c authored over 9 years ago by Brad Fitzpatrick <[email protected]>
all: cleanup usage of dashes in package documentation

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

e6e4582b5b6cc722221339a97a70d5988656a681 authored over 9 years ago by Matthew Dempsky <[email protected]>
net/http: pause briefly after closing Server connection when body remains

From https://github.com/golang/go/issues/11745#issuecomment-123555313
this implements option (b)...

d6bdda2f740ae5628991e246c315111fe047624f authored over 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: make Transport return proper error on cancel before response headers

Fixes #11020

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

c4d5da3c4ef4e99bc5d9dd3ae896fc24ab4b19ca authored over 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: on Transport body write error, wait briefly for a response

From https://github.com/golang/go/issues/11745#issuecomment-123555313 :

The http.RoundTripper i...

040494994846890aa8b472a0f5339faa69253ee4 authored over 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: fix a data race when Request.Cancel is used

The "add a Request.Cancel channel" change (https://golang.org/cl/11601)
added support for "race ...

63da98802f0ca9dea7bac781e21780996649bc3f authored over 9 years ago by Brad Fitzpatrick <[email protected]>
runtime/trace: add new package

Move tracing functions from runtime/pprof to the new runtime/trace package.

Fixes #9710

Change...

ded19a7e6c43be62c6c3c466f500220cf25403e1 authored over 9 years ago by Dmitry Vyukov <[email protected]>
net/http: add example for setting trailers in an Handler

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

e44dab7fd75385d68494f33a6fcca7d2406a860f authored over 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: don't reuse conns after incomplete 100-continue requests

If we receive an HTTP request with "Expect: 100-continue" and the
Handler never read to EOF, the...

6321ce32a06c7c03d066a477c9ce32a47bea8348 authored over 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: do not allow space or slash in Host headers

A malformed Host header can result in a malformed HTTP request.
Clean them to avoid this.

Updat...

0a2e48cf943c6f2b44840a83436d02beaef3f66d authored over 9 years ago by Jeff R. Allen <[email protected]>
all: link to https for golang subdomains too

The previous commit (git 2ae77376) just did golang.org. This one
includes golang.org subdomains...

da3aa76a422a0e672add08906afecdc1d54adcab authored over 9 years ago by Brad Fitzpatrick <[email protected]>
all: link to https instead of http

The one in misc/makerelease/makerelease.go is particularly bad and
probably warrants rotating ou...

6572ced7002a74530a6f7244b4605ce1a2096d22 authored over 9 years ago by Brad Fitzpatrick <[email protected]>
net/http/fcgi: fix race between serveRequest and cleanUp

Fixes #11552

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

dc03646941a3397f4767e35720eff5bc9b877fc3 authored over 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: fix MaxBytesReader at EOF

Fixes #10884

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

710779b7d0865517be9ead2c505dbfd3039a22f5 authored over 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: revert overly-strict part of earlier smuggling defense

The recent https://golang.org/cl/11810 is reportedly a bit too
aggressive.

Apparently some HTTP...

c7570e86adc46e9e650debd0f1061324cfe01abf authored over 9 years ago by Brad Fitzpatrick <[email protected]>
net/http/httputil: make ReverseProxy support Trailers

Go's continuous build system depends on HTTP trailers for the buildlet
interface.

Andrew rewrot...

495900bc7f5b9e0051704a8c994022d4a769053c authored over 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: harden Server against request smuggling

See RFC 7230.

Thanks to Régis Leroy for the report.

Change-Id: Ic1779bc2180900430d4d7a4938cac0...

9c5d78b79a274e80e28af1ebea487cd9576bf040 authored over 9 years ago by Brad Fitzpatrick <[email protected]>
net/textproto: don't treat spaces as hyphens in header keys

This was originally done in https://codereview.appspot.com/5690059
(Feb 2012) to deal with bad r...

4fc67d5cde7da345ba9bceb3f9e2b1055fc5aebe authored over 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: harden, document func SetCookie and type Cookie

Fixes #9758

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

41418c86dd960c7e6b53ce59968e9a89fb4ee4d6 authored over 9 years ago by Brad Fitzpatrick <[email protected]>
net/url: only record RawPath when it is needed

RawPath is a hint to the desired encoding of Path.
It is ignored when it is not a valid encoding...

18b607e8be363519f8e4e3ee2b2193616fd59f81 authored over 9 years ago by Russ Cox <[email protected]>
net/http: add a Request.Cancel channel.

This allows for "race free" cancellation, in the sense discussed in
issue #11013: in contrast to...

670a7c6c2407589a71589ff90501a087c3ab3007 authored over 9 years ago by Aaron Jacobs <[email protected]>
net/http/httptest: increase test Server's key size

Fixes #10725

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

054f53a3817fc8a9904dfa48b22e13bee0e3e2c8 authored over 9 years ago by Brad Fitzpatrick <[email protected]>
net/http: fix now-flaky TransportAndServerSharedBodyRace test

TestTransportAndServerSharedBodyRace got flaky after
issue #9662 was fixed by https://golang.org...

c0eeb32361338c2c6fe86b22f0dcddcb8f4dfb60 authored over 9 years ago by Brad Fitzpatrick <[email protected]>