]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: aws:SecureTransport uses rgw_transport_is_secure() 24944/head
authorCasey Bodley <cbodley@redhat.com>
Mon, 22 Oct 2018 18:16:59 +0000 (14:16 -0400)
committerJonathan Brielmaier <jbrielmaier@suse.de>
Mon, 5 Nov 2018 15:31:12 +0000 (16:31 +0100)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit e515d92)
Signed-off-by: Jonathan Brielmaier <jbrielmaier@suse.de>
src/rgw/rgw_op.cc

index dce4549f6396235477387f29c1ba8f0196838e76..6e7daadcd22874f4b1cb7ccb8bf792b1d2ba68cb 100644 (file)
@@ -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");
   }