mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
net/http: fix typo in Transport docs
Change-Id: Ifeb8d6d2e3fd4c8b0e27da62bec5cf28fe71db34
GitHub-Last-Rev: 5760fb106f
GitHub-Pull-Request: golang/go#76316
Reviewed-on: https://go-review.googlesource.com/c/go/+/720800
Auto-Submit: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Mark Freeman <markfreeman@google.com>
Auto-Submit: Sean Liao <sean@liao.dev>
Reviewed-by: Sean Liao <sean@liao.dev>
This commit is contained in:
parent
90c970cd0f
commit
35d2712b32
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ const DefaultMaxIdleConnsPerHost = 2
|
||||||
// ClientTrace.Got1xxResponse.
|
// ClientTrace.Got1xxResponse.
|
||||||
//
|
//
|
||||||
// Transport only retries a request upon encountering a network error
|
// Transport only retries a request upon encountering a network error
|
||||||
// if the connection has been already been used successfully and if the
|
// if the connection has already been used successfully and if the
|
||||||
// request is idempotent and either has no body or has its [Request.GetBody]
|
// request is idempotent and either has no body or has its [Request.GetBody]
|
||||||
// defined. HTTP requests are considered idempotent if they have HTTP methods
|
// defined. HTTP requests are considered idempotent if they have HTTP methods
|
||||||
// GET, HEAD, OPTIONS, or TRACE; or if their [Header] map contains an
|
// GET, HEAD, OPTIONS, or TRACE; or if their [Header] map contains an
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue