s3 api: make x-amz-meta-* headers lowercase (fix #844)

This commit is contained in:
Alex Auvolat
2025-01-27 19:58:06 +01:00
parent d4e3e60920
commit e8fa89e834
2 changed files with 6 additions and 9 deletions
+1 -1
View File
@@ -622,7 +622,7 @@ pub(crate) fn get_headers(headers: &HeaderMap<HeaderValue>) -> Result<HeaderList
for (name, value) in headers.iter() {
if name.as_str().starts_with("x-amz-meta-") {
ret.push((
name.to_string(),
name.as_str().to_ascii_lowercase(),
std::str::from_utf8(value.as_bytes())?.to_string(),
));
}