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/web | |
parent | 797cda1c33d0b908492d2c08ece1c51c9b10f36d (diff) | |
download | garage-b4c903371c3812851befd1af8f01419fe18efcf3.tar.gz garage-b4c903371c3812851befd1af8f01419fe18efcf3.zip |
add support for caching headers
Diffstat (limited to 'src/web')
-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"))), }; |