signer: Should not convert "%2B" to "+"
Signed-off-by: Jingwen Peng <pengsrc@yunify.com>
This commit is contained in:
parent
e7105eb602
commit
567015c717
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue