aboutsummaryrefslogtreecommitdiff
path: root/src/net/http/export_test.go
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2019-05-29 21:49:20 +0000
committerBrad Fitzpatrick <bradfitz@golang.org>2019-05-30 22:29:29 +0000
commitba66d89d7882892f762e7980562287d2c79ad87e (patch)
tree5f4565eac7c1fafad5a61a220bea6b65c0934a76 /src/net/http/export_test.go
parent103b5b66921b351f8db4fc6e83bf147b1a0d7580 (diff)
downloadgo-ba66d89d7882892f762e7980562287d2c79ad87e.tar.xz
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 #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>
Diffstat (limited to 'src/net/http/export_test.go')
-rw-r--r--src/net/http/export_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net/http/export_test.go b/src/net/http/export_test.go
index c33b88860a..f0dfa8cd33 100644
--- a/src/net/http/export_test.go
+++ b/src/net/http/export_test.go
@@ -33,6 +33,7 @@ var (
ExportHttp2ConfigureServer = http2ConfigureServer
Export_shouldCopyHeaderOnRedirect = shouldCopyHeaderOnRedirect
Export_writeStatusLine = writeStatusLine
+ Export_is408Message = is408Message
)
const MaxWriteWaitBeforeConnReuse = maxWriteWaitBeforeConnReuse