mirror of
https://github.com/golang/go
synced 2024-11-22 20:40:03 -07:00
net/http: fix typo in header.go
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>
This commit is contained in:
parent
0f25251127
commit
5045477be8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user