mirror of
https://github.com/minio/minio-rs.git
synced 2025-12-06 23:36:52 +08:00
SignV4: trim leading/trailing spaces in header value (#99)
Signed-off-by: Bala.FA <bala@minio.io>
This commit is contained in:
parent
b19513c90f
commit
b254b2f7ae
@ -269,7 +269,7 @@ pub fn get_canonical_headers(map: &Multimap) -> (String, String) {
|
||||
if !value.is_empty() {
|
||||
value.push(',');
|
||||
}
|
||||
let s: String = MULTI_SPACE_REGEX.replace_all(&v, " ").to_string();
|
||||
let s: String = MULTI_SPACE_REGEX.replace_all(&v, " ").trim().to_string();
|
||||
value.push_str(&s);
|
||||
}
|
||||
btmap.insert(key.clone(), value.clone());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user