Browse Source

add host to signature

tags/v0.7.8
jojoliang 5 years ago
parent
commit
f9f617878d
  1. 1
      auth.go

1
auth.go

@ -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)

Loading…
Cancel
Save