From 78deab05f9e7f2a9eaa3e9529c62210e619c1ebc Mon Sep 17 00:00:00 2001 From: albertony <12441419+albertony@users.noreply.github.com> Date: Sun, 21 Aug 2022 16:42:17 +0200 Subject: [PATCH] netstorage: ignore false positive from the staticcheck linter regarding header name not being canonical --- backend/netstorage/netstorage.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/netstorage/netstorage.go b/backend/netstorage/netstorage.go index 20a6401ab..40db98501 100755 --- a/backend/netstorage/netstorage.go +++ b/backend/netstorage/netstorage.go @@ -819,6 +819,8 @@ func (f *Fs) getAuth(req *http.Request) error { // Set Authorization header dataHeader := generateDataHeader(f) path := req.URL.RequestURI() + //lint:ignore SA1008 false positive when running staticcheck, the header name is according to docs even if not canonical + //nolint:staticcheck // Don't include staticcheck when running golangci-lint to avoid SA1008 actionHeader := req.Header["X-Akamai-ACS-Action"][0] fs.Debugf(nil, "NetStorage API %s call %s for path %q", req.Method, actionHeader, path) req.Header.Set("X-Akamai-ACS-Auth-Data", dataHeader)