aboutsummaryrefslogtreecommitdiff
path: root/src/api/api_server.rs
diff options
context:
space:
mode:
authorAlex <alex@adnab.me>2021-03-18 19:45:02 +0100
committerAlex <alex@adnab.me>2021-03-18 19:45:02 +0100
commitbfa0ff8f82c88ea3ea606bf0fcce60d36f9716ac (patch)
treef2c05787a4d2fd41ab6c4086b04dc97b57c7c862 /src/api/api_server.rs
parentdead945c8f770ab62a676922f98cc59c636257ce (diff)
parentb4c903371c3812851befd1af8f01419fe18efcf3 (diff)
downloadgarage-bfa0ff8f82c88ea3ea606bf0fcce60d36f9716ac.tar.gz
garage-bfa0ff8f82c88ea3ea606bf0fcce60d36f9716ac.zip
Merge pull request 'add support for caching headers' (#49) from trinity-1686a/garage:cache-headers into master
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/49
Diffstat (limited to 'src/api/api_server.rs')
-rw-r--r--src/api/api_server.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/api_server.rs b/src/api/api_server.rs
index bc98686d..2feb0e3a 100644
--- a/src/api/api_server.rs
+++ b/src/api/api_server.rs
@@ -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