]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
RGW: S3 POST policy should not require Content-Type 19784/head
authorMatt Benjamin <mbenjamin@redhat.com>
Tue, 31 Oct 2017 22:31:13 +0000 (18:31 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Thu, 4 Jan 2018 20:49:10 +0000 (15:49 -0500)
commitad0ea9fa530d641fdadcae29059660446b428588
tree19f2ae9b3ef6921daa3d44a9980b2997de3c8641
parentbccb4839ee8fde4636001976df1890b7a0f1f0a0
RGW: S3 POST policy should not require Content-Type

In the current implementation, putting a key in the acting
RGWPolicyEnv makes it required in RGWPolicyEnv::match_policy_vars.

I'm not sure this is the intent, but in any case, add it to the env
only if sent.

Fixes: http://tracker.ceph.com/issues/20201
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit af29276c32f7009a78bd8b90d8f7d19026859c74)
src/rgw/rgw_rest_s3.cc