Skip to content

Commit 28ccae8

Browse files
committed
net/http: golint fixes
Resolves `request.go:1321:19: method wantsHttp10KeepAlive should be wantsHTTP10KeepAlive` detected by `golint` Change-Id: I6908a46f393118d212069b61e7f79fe7e47c892b
1 parent 426e7e9 commit 28ccae8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/net/http/request.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1318,7 +1318,7 @@ func (r *Request) expectsContinue() bool {
13181318
return hasToken(r.Header.get("Expect"), "100-continue")
13191319
}
13201320

1321-
func (r *Request) wantsHttp10KeepAlive() bool {
1321+
func (r *Request) wantsHTTP10KeepAlive() bool {
13221322
if r.ProtoMajor != 1 || r.ProtoMinor != 0 {
13231323
return false
13241324
}

src/net/http/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,7 @@ func (c *conn) readRequest(ctx context.Context) (w *response, err error) {
10261026
// We populate these ahead of time so we're not
10271027
// reading from req.Header after their Handler starts
10281028
// and maybe mutates it (Issue 14940)
1029-
wants10KeepAlive: req.wantsHttp10KeepAlive(),
1029+
wants10KeepAlive: req.wantsHTTP10KeepAlive(),
10301030
wantsClose: req.wantsClose(),
10311031
}
10321032
if isH2Upgrade {

0 commit comments

Comments
 (0)