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: update link to chrome documentation on connection management

The previous link at
https://insouciant.org/tech/connection-management-in-chromium/ is no
longer...

fa74da7ce027043f72487c23d07b53ff5d95985f authored over 4 years ago by smasher164 <[email protected]>
net/http/httputil: don't use testing.T after test completes

This fixes a race condition where
TestReverseProxyWebSocketCancelation appears to
panic after ot...

7481d2023fa7b85f3eb3d290419f7222fe028f24 authored over 4 years ago by Andrew G. Morgan <[email protected]>
net/http/httputil: handle escaped paths in SingleHostReverseProxy

When forwarding a request, a SingleHostReverseProxy appends the
request's path to the target URL...

0445b7b9ef6fc557d47691db14f625b54738af61 authored over 4 years ago by Daniel Kumor <[email protected]>
cmd,std: update golang.org/x/net to 20200501053045-e0ff5e5a1de5

For latest http2 changes.

Which then required updating golang.org/x/sys in cmd too.

Change-Id:...

d4213318758840aa3d83d15f8d5a066a6c58a542 authored over 4 years ago by Brad Fitzpatrick <[email protected]>
net/http: remove badStringError, make some unexported structs non-comparable

Reduces binary size by 4K, not counting the http2 changes (in CL
231119) that'll be bundled into...

95a8e5fa6980210a3b564c79e4b7eab58e58ddf6 authored over 4 years ago by Brad Fitzpatrick <[email protected]>
net/http/httputil: don't append to X-Forwarded-For in ReverseProxy when nil

Fixes #38079

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

36ae5953bb05ece9617567f6d35eafe072372fc9 authored over 4 years ago by Brad Fitzpatrick <[email protected]>
net/http/cgi: replace constant map with switch statement

The switch statement can be statically optimized by the compiler,
whereas similarly optimizing t...

e8a4e4a869151ce7bcb2fc68175c9d88413439c6 authored over 4 years ago by Matthew Dempsky <[email protected]>
net/http/httputil: make Switching Protocol requests (e.g. Websockets) cancelable

Ensures that a canceled client request for Switching Protocols
(e.g. h2c, Websockets) will cause...

7ea0c3748fc049afe00581645d7a7cea72cf598a authored over 4 years ago by Pierre Carru <[email protected]>
net/http/httputil: fix typo in unit test name

Everywhere else is using "cancellation"

The reasoning is mentioned in 170060

> Though there is...

b731fd7caf2017e73d596cca79c98f7650a24f73 authored over 4 years ago by Tyson Andre <[email protected]>
net/http/pprof: allow "seconds" parameters to most profiles

golang.org/cl/147598 added the support for delta computation for mutex
and block profiles. In fa...

79a01ee3c039ff071fe545c177b2c6c1cb9efb7a authored over 4 years ago by Hana (Hyang-Ah) Kim <[email protected]>
net/http/pprof: make TestDeltaProfile less flaky by retrying

In some slow environment, the goroutine for mutexHog2 may not run
within 1secs. So, try with inc...

e2cd0acf8346b5b5b3af3fd3aeaa95cf9e220ea7 authored over 4 years ago by Hana (Hyang-Ah) Kim <[email protected]>
net/http: fix Server.Shutdown race where it could miss an active connection

Wait for Listeners to drop to zero too, not just conns.

Fixes #33313

Change-Id: I09350ae380879...

8b13d969c9cce7b5fe497cd8efbff615efedc38a authored over 4 years ago by Brad Fitzpatrick <[email protected]>
net/http/pprof: support the "seconds" param for block, mutex profiles

When the seconds param is given, the block and mutex profile endpoints
report the difference bet...

bc1f702f56381b63703482b45ae32404cf7fb3ab authored over 4 years ago by Hana Kim <[email protected]>
net/http: release callbacks after fetch promise completes

When the request context was canceled, the Transport.RoundTrip method
could return before the fe...

737118bc211a12677b9184c782a8b4e7e3a4c85a authored over 4 years ago by Dmitri Shuralyov <[email protected]>
net/http: treat a nil Body from a custom RoundTripper as an empty one

Fixes #38095

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

ee63d93e536842cf1e6643ceed1a7bcd1375bce6 authored over 4 years ago by Bryan C. Mills <[email protected]>
net/http: use DOMException.message property in error text

Previously, details about the underlying fetch error
were not visible in the net/http error text...

e250b9022f7f07e8a185afe8d3a995591cd743e2 authored over 4 years ago by Dmitri Shuralyov <[email protected]>
net/http: remove arbitrary timeouts from TestIdentityResponse and TestTLSHandshakeTimeout

These hard-coded timeouts make the tests flaky on slow builders (such
as solaris-amd64-oraclerel...

d16dca8d4bd4047234df8de231f2db78888c35da authored over 4 years ago by Bryan C. Mills <[email protected]>
net/http: remove period at end of error message

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

6b124dba774f4968d49bd8803209aca41b882056 authored over 4 years ago by d-tsuji <[email protected]>
net/http: update bundled x/net/http2

Updates bundled http2 to x/net git rev 63522dbf7

http2: reduce allocations of (*clientConnR...

e8dc908fce586eacc8dd1df5ce863a32fd6fbbe8 authored over 4 years ago by Emmanuel T Odeke <[email protected]>
net/http: use atomicBool for inShutdown

This removes the TODO leftover by replacing the original int32 for
atomicBool that mimicks atomi...

d260276d67cfc11317e35df24299c0f7ccb3c269 authored over 4 years ago by Robert Kuska <[email protected]>
net/http: use t.Deadline instead of an arbitrary timeout in TestServerConnState

Updates #37322

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

9fa23c566bff716237d8f6fa568e1637193040e1 authored over 4 years ago by Bryan C. Mills <[email protected]>
net/http/cgi: remove outdated TODO

Cookies already work as http.Request parses the Cookie header on-demand
when the Cookie methods ...

955c53fe7eb8d1c11579f74b52501fbd94f9482e authored over 4 years ago by Tim Cooper <[email protected]>
net/http: fix handling of HTTP/2 upgrade failures

If an error occurs during the HTTP/2 upgrade phase, originally this
resulted in a pconn with pco...

fca806e1a1c1b45c52c14aa885f61a0a253247c1 authored over 4 years ago by Russ Cox <[email protected]>
net/http: verify RoundTripper invariants in the send function

Issue #37598 reports a nil-panic in *Client.send that can
only occur if one of the RoundTripper ...

50bed7c085d4f5a132741ab931e131309e7442d3 authored over 4 years ago by Bryan C. Mills <[email protected]>
all: fix incorrect channel and API usage in some unit tests

This CL changes some unit test functions, making sure that these tests (and goroutines spawned d...

a9df84bfc12228753ca047d12d789d2afcf4035f authored over 4 years ago by Ziheng Liu <[email protected]>
net/http/pprof: set content type for /debug/pprof

Fixes #37311

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

57d0e8e5551e5977f19a21b16644ed98ae0ac554 authored over 4 years ago by Hana (Hyang-Ah) Kim <[email protected]>
net/http/cgi: rename a test file to be less cute

My fault (from CL 4245070), sorry.

Change-Id: Ib95d3170dc326e74aa74c22421c4e44a8b00f577
Reviewe...

2e61deb40e387593b5624abcc4c95d70decd93e4 authored almost 5 years ago by Brad Fitzpatrick <[email protected]>
net/http: don't treat an alternate protocol as a known round tripper

As of CL 175857, the client code checks for known round tripper
implementations, and uses simple...

8e462ddf1505abac3bb16b548c604e958fb5a3fe authored almost 5 years ago by Ian Lance Taylor <[email protected]>
Revert "net/http: support gzip, x-gzip Transfer-Encodings"

This reverts commit e6c12c3d0296251f1d5a96ebde811dbfd4a914fe.

Reason for revert: the assumption...

a0c84c907cceabd410a7c9457eb1407609892604 authored almost 5 years ago by Filippo Valsorda <[email protected]>
net/http/httputil: add docs about X-Forwarded-For in ReverseProxy

ReverseProxy automatically sets the X-Forwarded-For header, if the request
already contains a X-...

0a992dab027a20baa9da354d8a978514990b48c4 authored almost 5 years ago by Kévin Dunglas <[email protected]>
net/http: document that ParseForm consumes Request.Body

Fixes #35620

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

b151fbe9f331993a0df068e4897ea15b4da7b14b authored almost 5 years ago by Luka Zitnik <[email protected]>
net/http: avoid writing to Transport.ProxyConnectHeader

Previously, we accidentally wrote the Proxy-Authorization header for
the initial CONNECT request...

669025992b9100423f500312461d249c097eecb9 authored almost 5 years ago by Bryan C. Mills <[email protected]>
net/http: fix some awkward wording in Request.WithContext docs

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

7fcf056358c2c0934fa108c168393678dedd33be authored almost 5 years ago by Brad Fitzpatrick <[email protected]>
net/http: use cancellation instead of a timeout in TestTransportProxyHTTPSConnectTimeout

The use of a timeout in this test caused it to be flaky: if the
timeout occurred before the conn...

140ea97aec59854270bf5e33701f83d84b8e34be authored almost 5 years ago by Bryan C. Mills <[email protected]>
net/http: await state traces earlier in TestServerConnState

This approach attempts to ensure that the log for each connection is
complete before the next se...

4f615c7518288fbd9d91d9e1ae299f06596cda8f authored almost 5 years ago by Bryan C. Mills <[email protected]>
net/http: fix timeout race in Transport proxy CONNECT

Fixes #36070

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

accac56c57a284ef7e4e6e0d86b19d981153e38a authored almost 5 years ago by Brad Fitzpatrick <[email protected]>
net/http: don't wait indefinitely in Transport for proxy CONNECT response

Fixes #28012

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

1c416b8433559c6d90c372924d51b8415f931d87 authored almost 5 years ago by Brad Fitzpatrick <[email protected]>
net/http: unflake TestTimeoutHandlerSuperfluousLogs

Uses 2 channels to synchronize that test, because
relying on sleeps creates flaky behavior, thus...

f2210c809473455b8e7caecb49d0efa397084319 authored almost 5 years ago by Emmanuel T Odeke <[email protected]>
net/http: update bundled x/net/http2

Updates bundled http2 to x/net git rev ef20fe5d7 for:

http2: make Transport.IdleConnTimeout ...

855df7d3eeae8c0195594725430c2f2d0dbd4895 authored almost 5 years ago by Brad Fitzpatrick <[email protected]>
net/http: rename tests for Redirect and StripPrefix

Before May 2018, I mistakenly thought the _suffix naming convention¹
used by examples also appli...

210a8065912470c9f1a643a586695c4418bf1ee7 authored almost 5 years ago by Dmitri Shuralyov <[email protected]>
net/http: make Transport.IdleConnTimeout consider wall (not monotonic) time

Both laptops closing their lids and cloud container runtimes
suspending VMs both faced the probl...

f9885fa444ce7d0b9b8d0336e1c71ed29474b066 authored almost 5 years ago by Brad Fitzpatrick <[email protected]>
net/http: fix Server.ConnContext modifying context for all new connections

Fixes #35750

Change-Id: I65d38cfc5ddd66131777e104c269cc3559b2471d
GitHub-Last-Rev: 953fdfd49b2b...

5a66cdd1acce904c428c2240228f186721f0a832 authored almost 5 years ago by Roman Kollár <[email protected]>
all: fix a bunch of misspellings

Change-Id: I5b909df0fd048cd66c5a27fca1b06466d3bcaac7
GitHub-Last-Rev: 778c5d21311abee09a5fbda2e4...

3d0de0d74a358282da9dc210ff637fc4255de031 authored almost 5 years ago by Ville Skyttä <[email protected]>
net/http: add some debugging to TestDontCacheBrokenHTTP2Conn

Not a fix, but will give us more info when it flakes again.

Updates #35113

Change-Id: I2f90c24...

3429c391774917a89deae7672abd5f1da47edb75 authored almost 5 years ago by Brad Fitzpatrick <[email protected]>
net/http: add DialTLSContext hook to Transport

Fixes #21526

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

1ac8a9202ad0b561ce73acc86b29c8a35ad8d833 authored about 5 years ago by Gabriel Rosenhouse <[email protected]>
net/http: relax TestLinuxSendfile, trace all system calls, match n64:sendfile

Fixes #35423

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

a13657cb648ab5f4b17c339ada4516a22001e3a7 authored about 5 years ago by Brad Fitzpatrick <[email protected]>
net/http: support gzip, x-gzip Transfer-Encodings

Support "gzip" aka "x-gzip" as a transfer-encoding for
requests and responses as per RFC 7230 Se...

b162368e9ce2311467f0dffcf31d645c1fbe301a authored about 5 years ago by Emmanuel T Odeke <[email protected]>
net/http: refactor test TestParseFormUnknownContentType

Use names to better communicate when a test case fails.

Change-Id: Id882783cb5e444b705443fbcdf6...

4aa33dd7562d99e8c5f232a952d8d1e65800a3b0 authored about 5 years ago by David Ndungu <[email protected]>
net/http: support disabling built-in HTTP/2 with a new build tag

Fixes #35082
Updates #6853

Change-Id: I4eeb0e15f534cff57fefb6039cd33fadf15b946e
Reviewed-on: ht...

4dcccbced8700a2efa9412aaca1d005a029f84af authored about 5 years ago by Brad Fitzpatrick <[email protected]>
syscall/js: garbage collect references to JavaScript values

The js.Value struct now contains a pointer, so a finalizer can
determine if the value is not ref...

ba91e1534a73f6cc895bdd3ccae8adb23a5c8b03 authored about 5 years ago by Richard Musiol <[email protected]>
net/http/httputil: fix missing Transfer-Encoding header

Current implementation of httputil.DumpRequestOut
incorrectly resets the Request.Body prematurel...

ae37327976a8b6e8b394c8c17edba2fef1b4a1c1 authored about 5 years ago by Harshavardhana <[email protected]>
net/http: deflake TestCancelRequestWithChannelBeforeDo_Cancel

Goroutines clean up takes longer when using deprecated CloseNotifier.

Fixes #35122

Change-Id: ...

594a9f098d665599238559b558b86c137634d881 authored about 5 years ago by Constantin Konstantinidis <[email protected]>
net/http: clarify Header.WriteSubset behavior

The current implementation performs a plain map lookup,
but other header methods canonicalize he...

750c72e87bdb2d81e31591e181301df3f5c81e10 authored about 5 years ago by empijei <[email protected]>
net/http: only decrement connection count if we removed a connection

The connection count must only be decremented if the persistent
connection was also removed.

Fi...

f4dbd0c4b984de95b577c40308ba89af1ba830c0 authored about 5 years ago by Michael Fraenkel <[email protected]>
net/http: fix comment TimeoutHandler no longer supports Flusher

Fixes #35161
Updates #34439

Change-Id: I978534cbb8b9fb32c115dba0066cf099c61d8ee9
GitHub-Last-Re...

828ab6a5be62f83a85f4a993d3924403da90dd80 authored about 5 years ago by pokutuna <[email protected]>
net/http: skip failing test on windows-amd64-longtest builder

bradfitz is actively thinking about a proper fix.
In the meantime, skip the test to suss out any...

fe95533b0afe50bf43d8426e23780dd8d52ba789 authored about 5 years ago by Bryan C. Mills <[email protected]>
net/http: don't cache http2.erringRoundTripper connections

Fixes #34978

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

0ae424a65ea1728a2379feacab30b9e358e9ee4a authored about 5 years ago by Brad Fitzpatrick <[email protected]>
net/http: update sanitizeCookieValue description

Commit 8f6d68eb (CL 37328) changed the code of sanitizeCookieValue without updating its descript...

7737a79956ee6a98f486e07b2662352221c9da24 authored about 5 years ago by Brave Cow <[email protected]>
net/http: remove parseURL variable

The parseURL variable was introduced in CL 49930 in order to work
around the fact that the name ...

fb84a3ab72ea229f472af3b840afc2cb68302881 authored about 5 years ago by Dmitri Shuralyov <[email protected]>
net/http/pprof: explicitly mention DefaultServeMux for default handlers

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

ba17c3ed10de358f36a94d4e20a5115a81bf854f authored about 5 years ago by harsimran1 <[email protected]>
net/http: make TimeoutHandler log spurious WriteHeader calls

Makes TimeoutHandler consistent with other handlers, by
logging any spurious WriteHeader calls.
...

77414e23b9aaf17104625c1eda7096967a113552 authored about 5 years ago by Emmanuel T Odeke <[email protected]>
net/http: make Transport.RoundTrip close body on any invalid request

Fixes #35015

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

7588ba9a8c3172610c50ad6fd9392a09dec3eb91 authored about 5 years ago by Emmanuel T Odeke <[email protected]>
net/http: make Transport.roundTrip close body on invalid method

Updates #35015

Change-Id: Ibfe8f72ed3887ca88ce9c1d8a29dacda72f3fe17
GitHub-Last-Rev: 4bfc56e716...

cb5bf0c6b7d19a72c0ff8aa5a8453af4bda21cc9 authored about 5 years ago by Luke Young <[email protected]>
net/http/httptest: add EnableHTTP2 to Server

Adds a knob EnableHTTP2, that enables an unstarted
Server and its respective client to speak HTT...

26400d43846732129245509994883098e111c1c6 authored about 5 years ago by Emmanuel T Odeke <[email protected]>
net/http, net/textproto: add Header.Values, MIMEHeader.Values methods

Fixes #34799

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

91b302c0adfc75a8919b14a7159e931a05b09a44 authored about 5 years ago by Trung Nguyen <[email protected]>
net/http: remove references to old NPN support

We now only support ALPN.

Updates #28362

Change-Id: I8d9461c7a91315ee92e712448d0bf5c4070d09ae
...

3288c183ae479509faf69bbcdd80e4b40bfc50a7 authored about 5 years ago by Brad Fitzpatrick <[email protected]>
net/http: clean up checkIfModifiedSince and checkIfUnmodifiedSince

The comment in both functions referred to the wrong header and I made
the checks easier to read....

50be247319b976885bdb610a04cea745b9cc7199 authored about 5 years ago by Anmol Sethi <[email protected]>
net/http: fix and lock-in Client.Do docs on request cancelation

Fixes the docs to correctly match the implementation
and also adds a test locking-in the behavio...

416b4ed95ba03fe45fa9ee47d69a305cc4afdaa1 authored about 5 years ago by Emmanuel T Odeke <[email protected]>
net/http: fix Transport panic with nil Request.Header

For Go 1.13 we introduced Header.Clone and it returns
nil if a nil Header is cloned. Unfortunate...

069ef211bcf15c4a217ab7f850d55185fcd80da8 authored about 5 years ago by Emmanuel T Odeke <[email protected]>
net/http: update bundled x/net/http2

Updates x/net/http2 to git rev d66e71096ffb9f08f36d9aefcae80ce319de6d68

http2: end stream e...

e942cea4814d2c038af464b5373000b0a8231a3a authored about 5 years ago by Emmanuel T Odeke <[email protected]>
net/http: do not sniff response if Content-Encoding header is set

Fixes #31753

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

ff0cce8a28767326346530f4e94e0399030a0e83 authored about 5 years ago by Emmanuel T Odeke <[email protected]>
net/http: use err as error var in server.Serve

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

115e1ff1ff2e118e3bd3d8b9d81a6ab95f445ba5 authored about 5 years ago by Davor Kapsa <[email protected]>
net/http: document that Request.Host includes HTTP/2 :authority

Fixes #34640

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

c37f0df1406e654be40e6d3fd2d580f1296d83e0 authored about 5 years ago by Brad Fitzpatrick <[email protected]>
net/http/cgi: skip tests if not functional perl

TestEnvOverride sets PATH to /wibble before executing a CGI.
So customized Perl that is starting...

acf97245887514019a094c57069cb417c747be13 authored about 5 years ago by Kyohei Kadota <[email protected]>
net/http: avoid sending unspecified time for directories

Change applies to sendFile.
This is already done for sendContent.

Change-Id: If43d9ab99e6e66a13...

d080c3651eccfdf138ccc12164fecef604cf45ba authored about 5 years ago by Nuno Cruces <[email protected]>
net/http: remove TestTimeoutHandlerAndFlusher due to flakes

Removes TestTimeoutHandlerAndFlusher due to flakes on
one of the builders due to timing issues.
...

75d315862e3d37ae4bdf8486523937cb4a5da0e1 authored about 5 years ago by Emmanuel T Odeke <[email protected]>
net/http, doc/go1.13.html: revert TimeoutHandler.Flush

Also added a test to ensure that any interactions
between TimeoutHandler and Flusher result in t...

90c93f2953c063a39123fc0ce8f9ea06a56feb8d authored about 5 years ago by Emmanuel T Odeke <[email protected]>
net/textproto: don't normalize headers with spaces before the colon

RFC 7230 is clear about headers with a space before the colon, like

X-Answer : 42

being invali...

7b4a7a14abe6f99f0d3a3b9fe518b7a43dc9f14c authored about 5 years ago by Filippo Valsorda <[email protected]>
net/http: propagate Client.Timeout down into Request's context deadline

Fixes #31657

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

321965012cbfe0f6314e790f289b0797e2b62141 authored about 5 years ago by Brad Fitzpatrick <[email protected]>
net/http: remove http2 connections when no longer cached

When the http2 transport returns a NoCachedConnError, the connection
must be removed from the id...

7eb8c246fce8fff32081a2924e33c047242a5424 authored about 5 years ago by Michael Fraenkel <[email protected]>
net/http: fix HTTP/2 idle pool tracing

CL 140357 caused HTTP/2 connections to be put in the idle pool, but
failed to properly guard the...

93cca7db966372065ba66a081f9aaa76224675aa authored about 5 years ago by Tom Thorogood <[email protected]>
all: fix typos

Use the following (suboptimal) script to obtain a list of possible
typos:

#!/usr/bin/env sh

...

26577b330df8caf9bec472586e9b18c8885845e4 authored about 5 years ago by Ainar Garipov <[email protected]>
net/http: make copyValues append instead of calling Add

This results in a performance boost:

name old time/op new time/op delta
CopyValu...

5765d7ed22764e4b8eda3f99046e5d16b80c2b11 authored about 5 years ago by smasher164 <[email protected]>
std: remove unused bits of code all over the place

Some were never used, and some haven't been used for years.

One exception is net/http's readerA...

d714bcb623656f459d5ca56994475782cccb997b authored about 5 years ago by Daniel Martí <[email protected]>
net/http: merge IsDir checks in fs.go's serveFile function

Fixes #33385

Change-Id: I497ccd868d408a9c5648c72aa5ce41221368daf4
GitHub-Last-Rev: 3bf483808e10...

dfb0ca8335d66758274a408fe9e979935160bffc authored about 5 years ago by spacewander <[email protected]>
net/http: remove redundant port validation

The URL port is already checked in net/url, so we can remove the redundant validation in net/htt...

58d876d00120a96cb049cbe26d6988de6d0463d0 authored about 5 years ago by Derek Phan <[email protected]>
net/http: don't panic serving dir in ServeFile with empty Request.URL.Path

Updates #30165
Updates #31622

Change-Id: I7a4b91aa7c5c3af8c0b1273cbb42046feddf7d78
Reviewed-on:...

6355b159e715bc828b589816e2179a9fb7ab1cb0 authored about 5 years ago by Brad Fitzpatrick <[email protected]>
net/http: fix a long test after CL 185117

The net/url error in question now quotes the URL, so update the expected
output string.

While a...

3d9e5acc646eab497cf827f96471a02a17b3bb15 authored about 5 years ago by Daniel Martí <[email protected]>
net/url: improve url parsing error messages by quoting

Current implementation doesn't always make it obvious what the exact
problem with the URL is, so...

785233a541968b38c68d586931f2a1b0326b7ab6 authored about 5 years ago by Stefan Baebler <[email protected]>
net/http/httputil: fix goroutine leak for DumpRequestOut

When an invalid URL was passed to DumpRequestOut, it would directly return
without gracefully sh...

eb2a8b7489f89a3cc5b9037bd4920694d05120a8 authored about 5 years ago by Agniva De Sarker <[email protected]>
net/http: enhance documentation for Server.Addr

Fixes golang/go#31249

Change-Id: I3280f8ab170ed31d4efb71106533e016d430d44c
Reviewed-on: https:/...

961454c235938aecafd306b50a55243c5bae5834 authored about 5 years ago by Anderson Queiroz <[email protected]>
net/http: fix wantConnQueue memory leaks in Transport

I'm trying to keep the code changes minimal for backporting to Go 1.13,
so it is still possible ...

8e2c346abe86070ddf39b4245488ad904ef7e18b authored about 5 years ago by Bryan C. Mills <[email protected]>
net/http: fix a typo in comments

HTTP is an initialism, not an acronym, where you pronounce each letter as a
word. It's "an H", n...

5b34d494ab05f0ab533249eb6eaf43be8bb8e21f authored about 5 years ago by Javier Revillas <[email protected]>
net/http: make docs refer to Context.Value as a getter instead of context.WithValue

The doc comments of both ServerContextKey and LocalAddrContextKey both suggest that context.With...

c564c84dc4fe902d29cce3c4c802fd5bb3b4fc22 authored about 5 years ago by Kevin Gillette <[email protected]>
net/http: update bundled golang.org/x/net/http2 to import security fix

Update golang.org/x/net to v0.0.0-20190813141303-74dc4d7220e7 to import
the following security f...

889cb17772bb58617e9ae08d0346e523ef95e0cc authored about 5 years ago by Filippo Valsorda <[email protected]>
net/http: change TimeoutHandler's docs to match its new interfaces

As of Go 1.13rc1, TimeoutHandler supports the Flusher and Pusher interfaces and
this change corr...

a9559d2c1471f643a1cb69dcbcc6df355a931fa0 authored about 5 years ago by Jeff Hodges <[email protected]>
net/url: make Hostname and Port predictable for invalid Host values

When Host is not valid per RFC 3986, the behavior of Hostname and Port
was wildly unpredictable,...

c9973b578a7ab6dd3918419eabf3b5fcafe6a6dd authored over 5 years ago by Filippo Valsorda <[email protected]>
src/go.mod: sync golang.org/x/net with h2_bundle.go

The bundle included changes from a commit after the one referred to by
the go.mod, probably due ...

d67c4da86183b9d60120f0ae212ec16df25f45c3 authored over 5 years ago by Filippo Valsorda <[email protected]>
net/http: fix typo in Response.Body's doc

Fixes #33453.

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

4584f85d0c0a5f3b5a71394beb32ff830f6126a0 authored over 5 years ago by Shivani Singhal <[email protected]>
all: remove os.ErrTimeout

It is unclear whether the current definition of os.IsTimeout is
desirable or not. Drop ErrTimeou...

939ad3f1cf3f6dfebbe95048679d5a03a8c33bb9 authored over 5 years ago by Damien Neil <[email protected]>