summaryrefslogtreecommitdiffstats
path: root/llgo/third_party/gofrontend/libgo/go/net/http/header.go
diff options
context:
space:
mode:
Diffstat (limited to 'llgo/third_party/gofrontend/libgo/go/net/http/header.go')
-rw-r--r--llgo/third_party/gofrontend/libgo/go/net/http/header.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/llgo/third_party/gofrontend/libgo/go/net/http/header.go b/llgo/third_party/gofrontend/libgo/go/net/http/header.go
index 153b94370f8..d847b131184 100644
--- a/llgo/third_party/gofrontend/libgo/go/net/http/header.go
+++ b/llgo/third_party/gofrontend/libgo/go/net/http/header.go
@@ -168,6 +168,8 @@ func (h Header) WriteSubset(w io.Writer, exclude map[string]bool) error {
// letter and any letter following a hyphen to upper case;
// the rest are converted to lowercase. For example, the
// canonical key for "accept-encoding" is "Accept-Encoding".
+// If s contains a space or invalid header field bytes, it is
+// returned without modifications.
func CanonicalHeaderKey(s string) string { return textproto.CanonicalMIMEHeaderKey(s) }
// hasToken reports whether token appears with v, ASCII
OpenPOWER on IntegriCloud