From e515d92067989c61679b55f00293f9ec19ac9967 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 --- 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 f5bab237faeb..7c0f68ab5c71 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -705,9 +705,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.47.3