]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: pick http_date in case of http_x_amz_date absence
authorSeena Fallah <seenafallah@gmail.com>
Fri, 9 Jun 2023 12:14:24 +0000 (14:14 +0200)
committerSeena Fallah <seenafallah@gmail.com>
Thu, 15 Jun 2023 16:29:51 +0000 (18:29 +0200)
commit912b7745181a221bc8468317c83f4c461933208e
tree23e1d52fcd7a4df5cf85fd7b710802fee779e2eb
parentff440a1fe46f3addc38477c4482ceef1c5f04608
rgw: pick http_date in case of http_x_amz_date absence

From the AWS doc:
The request date can be specified by using either the HTTP Date or the x-amz-date header. If both headers are present, x-amz-date takes precedence.
Refs: https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-auth-using-authorization-header.html

Fixes: https://tracker.ceph.com/issues/61629
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
src/rgw/rgw_auth_s3.cc