Skip to content

Commit

Permalink
Merge pull request AdRoll#363 from Magrath/fix-sdb-sign
Browse files Browse the repository at this point in the history
Fix SDB request signing on auth expiry
  • Loading branch information
alimoeeny committed May 1, 2015
2 parents cc210f4 + 681b29f commit d167a97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exp/sdb/sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ func sign(auth aws.Auth, method, path string, params url.Values, headers http.He
}

// set up some defaults used for signing the request
params["AWSAccessKeyId"] = []string{auth.AccessKey}
params["SignatureVersion"] = []string{"2"}
params["SignatureMethod"] = []string{"HmacSHA256"}
if auth.Token() != "" {
params["SecurityToken"] = []string{auth.Token()}
}
params["AWSAccessKeyId"] = []string{auth.AccessKey}
params["SignatureVersion"] = []string{"2"}
params["SignatureMethod"] = []string{"HmacSHA256"}

// join up all the incoming params
var sarray []string
Expand Down

0 comments on commit d167a97

Please sign in to comment.