diff --git a/src/net/http/header.go b/src/net/http/header.go index 4a4ebbcf2f8782..b9b53911f38441 100644 --- a/src/net/http/header.go +++ b/src/net/http/header.go @@ -178,6 +178,7 @@ func (h Header) sortedKeyValues(exclude map[string]bool) (kvs []keyValues, hs *h // WriteSubset writes a header in wire format. // If exclude is not nil, keys where exclude[key] == true are not written. +// Keys are not canonicalized before checking the exclude map. func (h Header) WriteSubset(w io.Writer, exclude map[string]bool) error { return h.writeSubset(w, exclude, nil) }