diff options
author | Trinity Pointard <trinity.pointard@gmail.com> | 2021-03-18 15:46:33 +0100 |
---|---|---|
committer | Trinity Pointard <trinity.pointard@gmail.com> | 2021-03-18 15:46:33 +0100 |
commit | b4c903371c3812851befd1af8f01419fe18efcf3 (patch) | |
tree | 896ef4e1729e74bf9ed4068c7121a37d0353ba4d /src/api/api_server.rs | |
parent | 797cda1c33d0b908492d2c08ece1c51c9b10f36d (diff) | |
download | garage-b4c903371c3812851befd1af8f01419fe18efcf3.tar.gz garage-b4c903371c3812851befd1af8f01419fe18efcf3.zip |
add support for caching headers
Diffstat (limited to 'src/api/api_server.rs')
-rw-r--r-- | src/api/api_server.rs | 2 |
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 |