From ccf268502b0592f5ff58cd1a5920ec02a117acfb Mon Sep 17 00:00:00 2001 From: Orit Wasserman Date: Thu, 13 Aug 2015 15:02:03 +0200 Subject: [PATCH] rgw: we should not overide Swift sent content type Fixes: #12363 backport: hammer Signed-off-by: Orit Wasserman (cherry picked from commit 423cf136f15df3099c9266f55932542d303c2713) --- src/rgw/rgw_rest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5