diff options
author | Alex <alex@adnab.me> | 2021-03-18 19:45:02 +0100 |
---|---|---|
committer | Alex <alex@adnab.me> | 2021-03-18 19:45:02 +0100 |
commit | bfa0ff8f82c88ea3ea606bf0fcce60d36f9716ac (patch) | |
tree | f2c05787a4d2fd41ab6c4086b04dc97b57c7c862 /src/web/web_server.rs | |
parent | dead945c8f770ab62a676922f98cc59c636257ce (diff) | |
parent | b4c903371c3812851befd1af8f01419fe18efcf3 (diff) | |
download | garage-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/web/web_server.rs')
-rw-r--r-- | src/web/web_server.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web/web_server.rs b/src/web/web_server.rs index 24d111a9..cfde2bcc 100644 --- a/src/web/web_server.rs +++ b/src/web/web_server.rs @@ -99,7 +99,7 @@ async fn serve_file(garage: Arc<Garage>, req: Request<Body>) -> Result<Response< info!("Selected bucket: \"{}\", selected key: \"{}\"", bucket, key); let res = match req.method() { - &Method::HEAD => handle_head(garage, &bucket, &key).await?, + &Method::HEAD => handle_head(garage, &req, &bucket, &key).await?, &Method::GET => handle_get(garage, &req, bucket, &key).await?, _ => return Err(Error::BadRequest(format!("HTTP method not supported"))), }; |