]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: aws:SecureTransport uses rgw_transport_is_secure() 24931/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 11:35:32 +0000 (12:35 +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 b34a2332eb0714f292e537844bd9d3b54049dde9..9e60510e95653dce27b3900c1fcc37207537a015 100644 (file)
@@ -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");
   }