]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: s3: secure_port should override port, also apply ssl default right.
authorMarcus Watts <mwatts@redhat.com>
Tue, 20 Dec 2016 05:22:02 +0000 (00:22 -0500)
committerMarcus Watts <mwatts@redhat.com>
Tue, 20 Dec 2016 05:37:05 +0000 (00:37 -0500)
commita113cf5ff5a642d2ee4cc83f5c7001b4bfe0a5df
tree66be70323b6bd05671f1593d58b86c7b78458e01
parent46ced9ddd2795f00f014e22e5637070b49e7a6d5
rgw: s3: secure_port should override port, also apply ssl default right.

Without https, only port is set.  With https, secure_port and port are
both set to the same value.  The previous logic looked at port first and
had overly simplified conditional logic which was liable to try to apply
both non-default cases.  The correct behavior is: look secure_port first,
and if secure_port is set, then only check to see if it's a non-default
port.

Signed-off-by: Marcus Watts <mwatts@redhat.com>
src/rgw/rgw_rest_s3.cc