chore(lint): remove canonicalheader since it's not reliable

This commit is contained in:
Quentin McGaw
2024-11-05 10:42:10 +00:00
parent 69aafa53c9
commit 88fd9388e4
2 changed files with 1 additions and 2 deletions

View File

@@ -29,7 +29,6 @@ linters:
- asciicheck
- bidichk
- bodyclose
- canonicalheader
- containedctx
- copyloopvar
- decorder

View File

@@ -27,7 +27,7 @@ func (a *apiKeyMethod) equal(other authorizationChecker) bool {
}
func (a *apiKeyMethod) isAuthorized(_ http.Header, request *http.Request) bool {
xAPIKey := request.Header.Get("X-API-Key") //nolint:canonicalheader
xAPIKey := request.Header.Get("X-API-Key")
if xAPIKey == "" {
xAPIKey = request.URL.Query().Get("api_key")
}