]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.12] net/http: prevent Transport from spamming stderr on server...
authorBrad Fitzpatrick <bradfitz@golang.org>
Wed, 29 May 2019 21:49:20 +0000 (21:49 +0000)
committerDmitri Shuralyov <dmitshur@golang.org>
Fri, 7 Jun 2019 22:00:46 +0000 (22:00 +0000)
commit918368e46c53e716f6c4137c174f19d9a907f887
tree8c1a6f68629884663c619aa8525543934cff8b31
parent3b05c3c2e68296ebcb9efd9b4b0739161dac964f
[release-branch.go1.12] net/http: prevent Transport from spamming stderr on server 408 reply

HTTP 408 responses now exist and are seen in the wild (e.g. from
Google's GFE), so make Go's HTTP client not spam about them when seen.
They're normal (now).

Fixes #32367
Updates #32310

Change-Id: I558eb4654960c74cf20db1902ccaae13d03310f6
Reviewed-on: https://go-review.googlesource.com/c/go/+/179457
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
(cherry picked from commit ba66d89d7882892f762e7980562287d2c79ad87e)
Reviewed-on: https://go-review.googlesource.com/c/go/+/181239
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/export_test.go
src/net/http/transport.go
src/net/http/transport_test.go