Skip to content

Commit

Permalink
*: Rename header variable
Browse files Browse the repository at this point in the history
Signed-off-by: Evgenii Baidakov <[email protected]>
  • Loading branch information
smallhive committed Sep 30, 2024
1 parent 5f26fb8 commit 1d079eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/auth/center.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func (c *center) Authenticate(r *http.Request) (*Box, error) {

amzContent := r.Header.Get(AmzContentSha256)

if hdr := r.Header.Get(ContentEncodingHdr); hdr == ContentEncodingAwsChunked || amzContent == ContentEncodingChunked {
if contentEncodingHdr := r.Header.Get(ContentEncodingHdr); contentEncodingHdr == ContentEncodingAwsChunked || amzContent == ContentEncodingChunked {
sig, err := hex.DecodeString(authHdr.SignatureV4)
if err != nil {
return nil, fmt.Errorf("DecodeString: %w", err)
Expand Down

0 comments on commit 1d079eb

Please sign in to comment.