Modify: add time.Now for expiration inside signing function

This commit is contained in:
HFO4
2020-01-02 13:41:57 +08:00
parent 9c48f4b7ad
commit 0f93864c8e
5 changed files with 19 additions and 20 deletions

View File

@@ -95,7 +95,7 @@ func (c HTTPClient) Request(method, target string, body io.Reader, opts ...Optio
// 签名请求
if options.sign != nil {
auth.SignRequest(options.sign, req, time.Now().Unix()+options.signTTL)
auth.SignRequest(options.sign, req, options.signTTL)
}
// 发送请求