From c36845ac453b51c9e47b2019b93b85e1be0c2733 Mon Sep 17 00:00:00 2001 From: chenej Date: Fri, 12 Apr 2024 14:47:17 +0800 Subject: [PATCH] Add URL encoding processing to the object_name in the URL --- src/s3/http.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/s3/http.rs b/src/s3/http.rs index 966ca1b5..d23f6688 100644 --- a/src/s3/http.rs +++ b/src/s3/http.rs @@ -455,8 +455,7 @@ impl BaseUrl { if !v.starts_with('/') { path.push('/'); } - // FIXME: urlencode path - path.push_str(v); + path.push_str(&urlencoding::encode(v).to_owned()); } url.host = host;