diff options
author | Alex Auvolat <alex@adnab.me> | 2021-03-15 16:21:41 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-03-15 16:21:41 +0100 |
commit | 3bf2df622a070fe8f233bec6d60bd5cca995fbfc (patch) | |
tree | 65ba71d4b950208c177a96ba34b797f18e732d5b /src/api/api_server.rs | |
parent | 097c339d981dba0420af17d30d1221181d8bf1d7 (diff) | |
download | garage-3bf2df622a070fe8f233bec6d60bd5cca995fbfc.tar.gz garage-3bf2df622a070fe8f233bec6d60bd5cca995fbfc.zip |
Time and metadata improvements
Diffstat (limited to 'src/api/api_server.rs')
-rw-r--r-- | src/api/api_server.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/api/api_server.rs b/src/api/api_server.rs index c6b1d483..bc98686d 100644 --- a/src/api/api_server.rs +++ b/src/api/api_server.rs @@ -137,7 +137,10 @@ async fn handler_inner(garage: Arc<Garage>, req: Request<Body>) -> Result<Respon ))); } let source_key = source_key.ok_or_bad_request("No source key specified")?; - Ok(handle_copy(garage, &bucket, &key, &source_bucket, &source_key).await?) + Ok( + handle_copy(garage, &req, &bucket, &key, &source_bucket, &source_key) + .await?, + ) } else { // PutObject query Ok(handle_put(garage, req, &bucket, &key, content_sha256).await?) |