We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36e8204 commit c1ad816Copy full SHA for c1ad816
aws/signer/v2/v2.go
@@ -57,7 +57,7 @@ func SignSDKRequest(req *aws.Request) {
57
return
58
}
59
60
- if req.HTTPRequest.Method != "POST" && req.HTTPRequest.Method != "GET" {
+ if req.HTTPRequest.Method != http.MethodPost && req.HTTPRequest.Method != http.MethodGet {
61
// The V2 signer only supports GET and POST
62
req.Error = errInvalidMethod
63
0 commit comments