From 4618c352907b7e1f9a55500ba8e6fe0487c167c4 Mon Sep 17 00:00:00 2001 From: "Bala.FA" Date: Sat, 13 Apr 2024 08:13:41 +0530 Subject: [PATCH] PresignV4: accept query_params as reference for mutation Fixes #131 Signed-off-by: Bala.FA --- include/miniocpp/signer.h | 2 +- src/signer.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/miniocpp/signer.h b/include/miniocpp/signer.h index b8c912b..670a93d 100644 --- a/include/miniocpp/signer.h +++ b/include/miniocpp/signer.h @@ -69,7 +69,7 @@ utils::Multimap SignV4STS(http::Method method, const std::string& uri, const utils::UtcTime& date); utils::Multimap PresignV4(http::Method method, const std::string& host, const std::string& uri, const std::string& region, - utils::Multimap query_params, + utils::Multimap& query_params, const std::string& access_key, const std::string& secret_key, const utils::UtcTime& date, unsigned int expires); diff --git a/src/signer.cc b/src/signer.cc index c3ffb59..067f6b0 100644 --- a/src/signer.cc +++ b/src/signer.cc @@ -165,7 +165,7 @@ utils::Multimap SignV4STS(http::Method method, const std::string& uri, utils::Multimap PresignV4(http::Method method, const std::string& host, const std::string& uri, const std::string& region, - utils::Multimap query_params, + utils::Multimap& query_params, const std::string& access_key, const std::string& secret_key, const utils::UtcTime& date, unsigned int expires) {