mirror of
https://github.com/ceph/ceph
synced 2024-12-17 00:46:05 +00:00
Merge pull request #10088 from pritha-srivastava/wip_s3_signedurl_errors
rgw: Fix for using port 443 with pre-signed urls. Reviewed-by: Casey Bodley <cbodley@redhat.com> Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
This commit is contained in:
commit
953fdecf15
@ -3668,7 +3668,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;
|
||||
|
Loading…
Reference in New Issue
Block a user