From 852538895eb2e9f8b868b9c692321452ff02a1ae Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Mon, 22 Oct 2018 14:16:59 -0400 Subject: [PATCH] rgw: aws:SecureTransport uses rgw_transport_is_secure() Signed-off-by: Casey Bodley (cherry picked from commit e515d92) Signed-off-by: Jonathan Brielmaier --- src/rgw/rgw_op.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index b34a2332eb071..9e60510e95653 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -666,9 +666,7 @@ rgw::IAM::Environment rgw_build_iam_environment(RGWRados* store, e.emplace("aws:Referer", i->second); } - // These seem to be the semantics, judging from rest_rgw_s3.cc - i = m.find("SERVER_PORT_SECURE"); - if (i != m.end()) { + if (rgw_transport_is_secure(s->cct, *s->info.env)) { e.emplace("aws:SecureTransport", "true"); } -- 2.39.5