diff --git a/src/rgw/rgw_rest_s3.cc b/src/rgw/rgw_rest_s3.cc index 7d2ac9665c0..bdd8ea4ee85 100644 --- a/src/rgw/rgw_rest_s3.cc +++ b/src/rgw/rgw_rest_s3.cc @@ -1609,7 +1609,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);