add support for caching headers

This commit is contained in:
Trinity Pointard
2021-03-18 15:46:33 +01:00
parent 797cda1c33
commit b4c903371c
3 changed files with 46 additions and 3 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ async fn handler_inner(garage: Arc<Garage>, req: Request<Body>) -> Result<Respon
match req.method() {
&Method::HEAD => {
// HeadObject query
Ok(handle_head(garage, &bucket, &key).await?)
Ok(handle_head(garage, &req, &bucket, &key).await?)
}
&Method::GET => {
// GetObject query