]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: fix typo in header.go
authorHuanCheng <xiqingongzi@gmail.com>
Fri, 20 Aug 2021 16:26:26 +0000 (00:26 +0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 20 Aug 2021 18:55:57 +0000 (18:55 +0000)
Change-Id: Ia6df881badf9a704c7f56967404d37e230b88a09
Reviewed-on: https://go-review.googlesource.com/c/go/+/343969
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Damien Neil <dneil@google.com>

src/net/http/header.go

index cc9c28e3d0d6203a17242f0a048adbb9de04caf7..5c77cbb8826661dfcaab9f9283c2d7e9f04acf09 100644 (file)
@@ -196,7 +196,7 @@ func (h Header) writeSubset(w io.Writer, exclude map[string]bool, trace *httptra
        for _, kv := range kvs {
                if !httpguts.ValidHeaderFieldName(kv.key) {
                        // This could be an error. In the common case of
-                       // writing reponse headers, however, we have no good
+                       // writing response headers, however, we have no good
                        // way to provide the error back to the server
                        // handler, so just drop invalid headers instead.
                        continue