signer: Should not convert "%2B" to "+"

Signed-off-by: Jingwen Peng <pengsrc@yunify.com>
This commit is contained in:
Jingwen Peng 2017-01-15 16:43:25 +08:00 committed by Aspire
parent e7105eb602
commit 567015c717
1 changed files with 0 additions and 1 deletions

View File

@ -120,7 +120,6 @@ func (is *Signer) BuildStringToSign(request *http.Request) (string, error) {
value := strings.TrimSpace(strings.Join(values, ""))
value = url.QueryEscape(value)
value = strings.Replace(value, "+", "%20", -1)
value = strings.Replace(value, "%2B", "+", -1)
parts = append(parts, key+"="+value)
} else {
parts = append(parts, key)