mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-30 08:49:29 +00:00
Fix #28, extra headers being ignored (because of profound stupidity)
This commit is contained in:
+3
-1
@@ -33,6 +33,8 @@ pub async fn handle_put(
|
||||
|
||||
// Retrieve interesting headers from request
|
||||
let headers = get_headers(&req)?;
|
||||
debug!("Object headers: {:?}", headers);
|
||||
|
||||
let content_md5 = match req.headers().get("content-md5") {
|
||||
Some(x) => Some(x.to_str()?.to_string()),
|
||||
None => None,
|
||||
@@ -578,7 +580,7 @@ fn get_headers(req: &Request<Body>) -> Result<ObjectVersionHeaders, Error> {
|
||||
}
|
||||
Ok(ObjectVersionHeaders {
|
||||
content_type,
|
||||
other: BTreeMap::new(),
|
||||
other,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user