Merge pull request #114 from cygnushan/fix-signature

fix signature error when param value is empty string
This commit is contained in:
roger 2018-12-20 17:55:45 +08:00 committed by GitHub
commit 7837d96a6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -135,10 +135,10 @@ func (is *Signer) BuildStringToSignByValues(requestDate string, requestMethod st
value = strings.Replace(value, "+", "%20", -1)
parts = append(parts, key+"="+value)
} else {
parts = append(parts, key)
parts = append(parts, key+"=")
}
} else {
parts = append(parts, key)
parts = append(parts, key+"=")
}
}