]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
RGW: S3 POST policy should not require Content-Type
authorMatt Benjamin <mbenjamin@redhat.com>
Tue, 31 Oct 2017 22:31:13 +0000 (18:31 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Tue, 31 Oct 2017 23:06:06 +0000 (19:06 -0400)
commitaf29276c32f7009a78bd8b90d8f7d19026859c74
treef517acf70a45edaff897bf01678dd1af13b09d88
parente12f7a980bc91b22198d0a3c1e8d213dc9eb353c
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>
src/rgw/rgw_rest_s3.cc