From a48ccf0384de805d2590cd72f33f9f1cc1cbd351 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 dce4549f6396..6e7daadcd228 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -608,9 +608,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