Skip to content

Commit d28c0b1

Browse files
cuishuanggopherbot
authored andcommitted
all: fix some comments
Change-Id: I005e210f0ae030c507b4bfd1548c5a885df4c6b9 Reviewed-on: https://go-review.googlesource.com/c/net/+/493155 Run-TryBot: shuang cui <imcusg@gmail.com> Reviewed-by: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com>
1 parent daac0ce commit d28c0b1

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

http2/h2c/h2c.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func init() {
4444
// HTTP/1, but unlikely to occur in practice and (2) Upgrading from HTTP/1 to
4545
// h2c - this works by using the HTTP/1 Upgrade header to request an upgrade to
4646
// h2c. When either of those situations occur we hijack the HTTP/1 connection,
47-
// convert it to a HTTP/2 connection and pass the net.Conn to http2.ServeConn.
47+
// convert it to an HTTP/2 connection and pass the net.Conn to http2.ServeConn.
4848
type h2cHandler struct {
4949
Handler http.Handler
5050
s *http2.Server

http2/server.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -2429,7 +2429,7 @@ type requestBody struct {
24292429
conn *serverConn
24302430
closeOnce sync.Once // for use by Close only
24312431
sawEOF bool // for use by Read only
2432-
pipe *pipe // non-nil if we have a HTTP entity message body
2432+
pipe *pipe // non-nil if we have an HTTP entity message body
24332433
needsContinue bool // need to send a 100-continue
24342434
}
24352435

@@ -2774,7 +2774,7 @@ func (w *responseWriter) FlushError() error {
27742774
err = rws.bw.Flush()
27752775
} else {
27762776
// The bufio.Writer won't call chunkWriter.Write
2777-
// (writeChunk with zero bytes, so we have to do it
2777+
// (writeChunk with zero bytes), so we have to do it
27782778
// ourselves to force the HTTP response header and/or
27792779
// final DATA frame (with END_STREAM) to be sent.
27802780
_, err = chunkWriter{rws}.Write(nil)

http2/transport.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1899,7 +1899,7 @@ func (cc *ClientConn) encodeHeaders(req *http.Request, addGzipHeader bool, trail
18991899
// 8.1.2.3 Request Pseudo-Header Fields
19001900
// The :path pseudo-header field includes the path and query parts of the
19011901
// target URI (the path-absolute production and optionally a '?' character
1902-
// followed by the query production (see Sections 3.3 and 3.4 of
1902+
// followed by the query production, see Sections 3.3 and 3.4 of
19031903
// [RFC3986]).
19041904
f(":authority", host)
19051905
m := req.Method

webdav/if.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type ifList struct {
2424

2525
// parseIfHeader parses the "If: foo bar" HTTP header. The httpHeader string
2626
// should omit the "If:" prefix and have any "\r\n"s collapsed to a " ", as is
27-
// returned by req.Header.Get("If") for a http.Request req.
27+
// returned by req.Header.Get("If") for an http.Request req.
2828
func parseIfHeader(httpHeader string) (h ifHeader, ok bool) {
2929
s := strings.TrimSpace(httpHeader)
3030
switch tokenType, _, _ := lex(s); tokenType {

0 commit comments

Comments
 (0)