From 1f5ccb3113e77555252eddb6e142430d85e41ce9 Mon Sep 17 00:00:00 2001 From: Bala FA Date: Tue, 26 Sep 2023 05:27:36 +0530 Subject: [PATCH] fix get_presigned_object_url() API to use host header value (#47) Fixes #46 Signed-off-by: Bala.FA --- src/s3/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/s3/client.rs b/src/s3/client.rs index 1c2c495..d3449f4 100644 --- a/src/s3/client.rs +++ b/src/s3/client.rs @@ -2218,7 +2218,7 @@ impl<'a> Client<'a> { presign_v4( &args.method, - &url.host, + &url.host_header_value(), &url.path, ®ion, &mut query_params,