Skip to content

Commit

Permalink
add host to signature
Browse files Browse the repository at this point in the history
  • Loading branch information
jojoliang committed Jun 10, 2020
1 parent 7b799af commit f9f6178
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ func newAuthorization(secretID, secretKey string, req *http.Request, authTime *A
keyTime := authTime.keyString()
signKey := calSignKey(secretKey, keyTime)

req.Header.Set("Host", req.Host)
formatHeaders := *new(string)
signedHeaderList := *new([]string)
formatHeaders, signedHeaderList = genFormatHeaders(req.Header)
Expand Down

0 comments on commit f9f6178

Please sign in to comment.