Skip to content

Commit

Permalink
rgw: fix rest client's order of args in get_v2_signature
Browse files Browse the repository at this point in the history
Signed-off-by: Casey Bodley <[email protected]>
  • Loading branch information
cbodley committed Jun 16, 2017
1 parent 0f2130e commit f8498f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rgw/rgw_rest_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ int RGWRESTSimpleRequest::execute(RGWAccessKey& key, const char *method, const c

string digest;
try {
digest = rgw::auth::s3::get_v2_signature(cct, canonical_header, key.key);
digest = rgw::auth::s3::get_v2_signature(cct, key.key, canonical_header);
} catch (int ret) {
return ret;
}
Expand Down Expand Up @@ -232,7 +232,7 @@ int RGWRESTSimpleRequest::sign_request(RGWAccessKey& key, RGWEnv& env, req_info&

string digest;
try {
digest = rgw::auth::s3::get_v2_signature(cct, canonical_header, key.key);
digest = rgw::auth::s3::get_v2_signature(cct, key.key, canonical_header);
} catch (int ret) {
return ret;
}
Expand Down

0 comments on commit f8498f5

Please sign in to comment.