diff options
| author | cuishuang <imcusg@gmail.com> | 2025-02-15 11:22:16 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-02-18 09:28:50 -0800 |
| commit | 0bdc792145acaf10c5f7bac1783a6692fb327dfb (patch) | |
| tree | ac2fda262e8498de31ff4396983d966e960280f6 /src/net/http/request.go | |
| parent | a3d11d280d10a3213f70d04379d5e1be882debb2 (diff) | |
| download | go-0bdc792145acaf10c5f7bac1783a6692fb327dfb.tar.xz | |
all: use a more straightforward return value
Change-Id: I27e86c221da7f541c4823f501801e02942c9a829
Reviewed-on: https://go-review.googlesource.com/c/go/+/649935
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/net/http/request.go')
| -rw-r--r-- | src/net/http/request.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/http/request.go b/src/net/http/request.go index 434c1640f3..cd254292e2 100644 --- a/src/net/http/request.go +++ b/src/net/http/request.go @@ -1062,7 +1062,7 @@ func ReadRequest(b *bufio.Reader) (*Request, error) { } delete(req.Header, "Host") - return req, err + return req, nil } // readRequest should be an internal detail, |
