fix signature error when param value is empty string

This commit is contained in:
cygnushan 2018-12-20 17:40:28 +08:00
parent 35fce242d3
commit cb0e444428
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+"=")
}
}