Browse Source

Merge pull request #41 from toranger/master

Add the check for anonymous user
tags/v0.7.8
toranger 6 years ago
committed by GitHub
parent
commit
e11b5d2ca1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      auth.go

4
auth.go

@ -142,6 +142,10 @@ func newAuthorization(secretID, secretKey string, req *http.Request, authTime *A
// AddAuthorizationHeader 给 req 增加签名信息
func AddAuthorizationHeader(secretID, secretKey string, sessionToken string, req *http.Request, authTime *AuthTime) {
if secretID == "" {
return
}
auth := newAuthorization(secretID, secretKey, req,
authTime,
)

Loading…
Cancel
Save