From: Tobias Klauser Date: Tue, 15 Dec 2020 09:36:10 +0000 (+0100) Subject: doc/go1.16: fix formatting in net, net/http and net/http/httputil sections X-Git-Tag: go1.16beta1~18 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=5046cb8a6e;p=gostls13.git doc/go1.16: fix formatting in net, net/http and net/http/httputil sections For #40700. Change-Id: I83d9ef9f79d59a0165a47ccc938fc2bf40e90703 Reviewed-on: https://go-review.googlesource.com/c/go/+/278212 Trust: Tobias Klauser Reviewed-by: Dmitri Shuralyov --- diff --git a/doc/go1.16.html b/doc/go1.16.html index edac1dbd35..2190ed6cd3 100644 --- a/doc/go1.16.html +++ b/doc/go1.16.html @@ -721,8 +721,8 @@ func TestFoo(t *testing.T) {

The case of I/O on a closed network connection, or I/O on a network connection that is closed before any of the I/O completes, can now - be detected using the new ErrClosed error. - A typical use would be errors.Is(err, net.ErrClosed). + be detected using the new ErrClosed + error. A typical use would be errors.Is(err, net.ErrClosed). In earlier releases the only way to reliably detect this case was to match the string returned by the Error method with "use of closed network connection". @@ -786,9 +786,10 @@ func TestFoo(t *testing.T) {

- The ProxyFromEnvironment function - no longer returns the setting of the HTTP_PROXY environment - variable for https:// URLs when HTTPS_PROXY is unset. + The ProxyFromEnvironment + function no longer returns the setting of the HTTP_PROXY + environment variable for https:// URLs when + HTTPS_PROXY is unset.

@@ -796,7 +797,7 @@ func TestFoo(t *testing.T) {
net/http/httputil

- The ReverseProxy + ReverseProxy now flushes buffered data more aggressively when proxying streamed responses with unknown body lengths.