From: Orit Wasserman Date: Thu, 13 Aug 2015 13:02:03 +0000 (+0200) Subject: rgw: we should not overide Swift sent content type X-Git-Tag: v0.80.11~5^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=ccf268502b0592f5ff58cd1a5920ec02a117acfb;p=ceph.git rgw: we should not overide Swift sent content type Fixes: #12363 backport: hammer Signed-off-by: Orit Wasserman (cherry picked from commit 423cf136f15df3099c9266f55932542d303c2713) --- diff --git a/src/rgw/rgw_rest.cc b/src/rgw/rgw_rest.cc index 604313c6a3078..083fa832eec0f 100644 --- a/src/rgw/rgw_rest.cc +++ b/src/rgw/rgw_rest.cc @@ -436,7 +436,7 @@ void end_header(struct req_state *s, RGWOp *op, const char *content_type, const dump_access_control(s, op); } - if (s->prot_flags & RGW_REST_SWIFT) { + if (s->prot_flags & RGW_REST_SWIFT && !content_type) { force_content_type = true; }