X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Frgw%2Frgw_rest_s3.cc;h=ec9011a06bc44d7640a563bc826e54709bb34237;hb=b32b81446b3b05102be0267e79203f59329c1d97;hp=aa5b525d04da84cf73837af223f094fa94b0e9c9;hpb=215dd7151453fae88e6f968c975b6ce309d42dcf;p=ceph.git diff --git a/ceph/src/rgw/rgw_rest_s3.cc b/ceph/src/rgw/rgw_rest_s3.cc index aa5b525d0..ec9011a06 100644 --- a/ceph/src/rgw/rgw_rest_s3.cc +++ b/ceph/src/rgw/rgw_rest_s3.cc @@ -1608,7 +1608,11 @@ int RGWPostObj_ObjStore_S3::get_params() env.add_var("key", s->object.name); part_str(parts, "Content-Type", &content_type); - env.add_var("Content-Type", content_type); + + /* AWS permits POST without Content-Type: http://tracker.ceph.com/issues/20201 */ + if (! content_type.empty()) { + env.add_var("Content-Type", content_type); + } map::iterator piter = parts.upper_bound(RGW_AMZ_META_PREFIX); @@ -3824,6 +3828,7 @@ AWSGeneralAbstractor::get_auth_data_v4(const req_state* const s, case RGW_OP_PUT_OBJ: case RGW_OP_PUT_ACLS: case RGW_OP_PUT_CORS: + case RGW_OP_INIT_MULTIPART: // in case that Init Multipart uses CHUNK encoding case RGW_OP_COMPLETE_MULTIPART: case RGW_OP_SET_BUCKET_VERSIONING: case RGW_OP_DELETE_MULTI_OBJ: