summaryrefslogtreecommitdiff
path: root/vendor/golang.org/x/net/internal/httpcommon/headermap.go
diff options
context:
space:
mode:
authorLibravatar dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2025-03-13 10:30:01 +0100
committerLibravatar GitHub <noreply@github.com>2025-03-13 10:30:01 +0100
commitda462afce2f1ef66f866752c8f7b775a646a6beb (patch)
treefaef6c63f424a8e918a460e3a5a77808297cc3a8 /vendor/golang.org/x/net/internal/httpcommon/headermap.go
parentupdate go-structr to v0.9.0 with new Timeline{} cache type (#3903) (diff)
downloadgotosocial-da462afce2f1ef66f866752c8f7b775a646a6beb.tar.xz
[chore]: Bump golang.org/x/net from 0.35.0 to 0.36.0 (#3905)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.35.0 to 0.36.0. - [Commits](https://github.com/golang/net/compare/v0.35.0...v0.36.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Diffstat (limited to 'vendor/golang.org/x/net/internal/httpcommon/headermap.go')
-rw-r--r--vendor/golang.org/x/net/internal/httpcommon/headermap.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/golang.org/x/net/internal/httpcommon/headermap.go b/vendor/golang.org/x/net/internal/httpcommon/headermap.go
index ad3fbacd6..92483d8e4 100644
--- a/vendor/golang.org/x/net/internal/httpcommon/headermap.go
+++ b/vendor/golang.org/x/net/internal/httpcommon/headermap.go
@@ -5,7 +5,7 @@
package httpcommon
import (
- "net/http"
+ "net/textproto"
"sync"
)
@@ -82,7 +82,7 @@ func buildCommonHeaderMaps() {
commonLowerHeader = make(map[string]string, len(common))
commonCanonHeader = make(map[string]string, len(common))
for _, v := range common {
- chk := http.CanonicalHeaderKey(v)
+ chk := textproto.CanonicalMIMEHeaderKey(v)
commonLowerHeader[chk] = v
commonCanonHeader[v] = chk
}
@@ -104,7 +104,7 @@ func CanonicalHeader(v string) string {
if s, ok := commonCanonHeader[v]; ok {
return s
}
- return http.CanonicalHeaderKey(v)
+ return textproto.CanonicalMIMEHeaderKey(v)
}
// CachedCanonicalHeader returns the canonical form of a well-known header name.