diff options
| author | kovan <xaum.io@gmail.com> | 2026-02-27 23:13:56 +0100 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2026-03-11 16:41:01 -0700 |
| commit | 3fc4af70d04682ab42744e4ce78f95025688996d (patch) | |
| tree | 38357dc33cef69bf2be99c3221bdd06406b45aca /src/testing/testing.go | |
| parent | c43088c7a6b58861078eb96617c7fc12764dbf76 (diff) | |
| download | go-3fc4af70d04682ab42744e4ce78f95025688996d.tar.xz | |
net/http: document which headers Request.Write handles specially
Document that Header values for Host, Content-Length,
Transfer-Encoding, and Trailer are not used by Write, as these
are derived from other Request fields. Also document that
User-Agent defaults to "Go-http-client/1.1" if not set in Header.
Fixes #68635
Change-Id: Ie182777ae094657cf3971fed989af1bd5e875d9f
Reviewed-on: https://go-review.googlesource.com/c/go/+/741442
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Damien Neil <dneil@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Diffstat (limited to 'src/testing/testing.go')
0 files changed, 0 insertions, 0 deletions
