]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Fix for using port 443 with pre-signed urls. 10088/head
authorPritha Srivastava <prsrivas@redhat.com>
Fri, 1 Jul 2016 08:45:42 +0000 (14:15 +0530)
committerPritha Srivastava <prsrivas@redhat.com>
Fri, 1 Jul 2016 08:45:42 +0000 (14:15 +0530)
Fixes http://tracker.ceph.com/issues/16548

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
src/rgw/rgw_rest_s3.cc

index 1d64aa061a70688a9d68ecb534c5206df2d6d098..fdb2fffc84e70720072e3ffc94146a8c4963828b 100644 (file)
@@ -3665,7 +3665,7 @@ int RGW_Auth_S3::authorize_v4(RGWRados *store, struct req_state *s)
     }
     string token_value = string(t);
     if (using_qs && (token == "host")) {
-      if (!port.empty() && port != "80") {
+      if (!port.empty() && port != "80" && port != "0") {
         token_value = token_value + ":" + port;
       } else if (!secure_port.empty() && secure_port != "443") {
         token_value = token_value + ":" + secure_port;