Skip to content

Commit 92a3123

Browse files
Merge pull request #49 from stackql/bugfix/upgrade-to-aws-sdk-go-v2
bugfix-aws-sigining
2 parents faca0c1 + 77a0c03 commit 92a3123

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/awssign/aws_sign.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"bytes"
55
"context"
66
"crypto/sha256"
7-
"encoding/base64"
7+
"encoding/hex"
88
"fmt"
99
"io"
1010
"net/http"
@@ -85,8 +85,8 @@ func (t *standardAwsSignTransport) RoundTrip(req *http.Request) (*http.Response,
8585
return nil, err
8686
}
8787
hashBytes := sha256.Sum256(body)
88-
// Base64 encode the hash
89-
payloadHash = base64.StdEncoding.EncodeToString(hashBytes[:])
88+
// Hex encode the hash
89+
payloadHash = hex.EncodeToString(hashBytes[:])
9090
rs := io.NopCloser(bytes.NewReader(body))
9191
req.Body = rs
9292
} else {

0 commit comments

Comments
 (0)