From: Casey Bodley Date: Mon, 22 Oct 2018 18:16:59 +0000 (-0400) Subject: rgw: aws:SecureTransport uses rgw_transport_is_secure() X-Git-Tag: v14.1.0~1091^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F24700%2Fhead;p=ceph.git rgw: aws:SecureTransport uses rgw_transport_is_secure() Signed-off-by: Casey Bodley --- 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"); }