Skip to content

Commit

Permalink
PresignV4: accept query_params as reference for mutation
Browse files Browse the repository at this point in the history
Fixes #131

Signed-off-by: Bala.FA <[email protected]>
  • Loading branch information
balamurugana committed Apr 13, 2024
1 parent f5132e0 commit 4618c35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/miniocpp/signer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/signer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4618c35

Please sign in to comment.