fix signature error when param value is empty string
This commit is contained in:
parent
35fce242d3
commit
cb0e444428
|
@ -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+"=")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue