]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: aws:SecureTransport uses rgw_transport_is_secure() 24700/head
authorCasey Bodley <cbodley@redhat.com>
Mon, 22 Oct 2018 18:16:59 +0000 (14:16 -0400)
committerCasey Bodley <cbodley@redhat.com>
Mon, 22 Oct 2018 18:56:22 +0000 (14:56 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_op.cc

index f5bab237faebf8c47b846ec0a403838f5c3ab59c..7c0f68ab5c716d89bec02f7cfbb511f10954372c 100644 (file)
@@ -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");
   }