Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
void AWSv4Completer::modify_request_state(req_state* const s_rw)
{
/* TODO(rzarzynski): switch to the dedicated filter over RestfulClient. */
- s_rw->aws4_auth_needs_complete = aws4_auth_needs_complete;
s_rw->aws4_auth_streaming_mode = aws4_auth_streaming_mode;
s_rw->aws4_auth = std::unique_ptr<rgw_aws4_auth>(new rgw_aws4_auth);
bucket_acl = NULL;
object_acl = NULL;
expect_cont = false;
- aws4_auth_needs_complete = false;
aws4_auth_streaming_mode = false;
header_ended = false;
bool system_request;
/* aws4 auth support */
- bool aws4_auth_needs_complete;
bool aws4_auth_streaming_mode;
unique_ptr<rgw_aws4_auth> aws4_auth;
return;
}
- if (s->aws4_auth_needs_complete) {
- http_ret = do_aws4_auth_completion();
- if (http_ret < 0) {
- return;
- }
+ http_ret = do_aws4_auth_completion();
+ if (http_ret < 0) {
+ return;
}
frame_metadata_key(s, metadata_key);