]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: we should not overide Swift sent content type
authorOrit Wasserman <owasserm@redhat.com>
Thu, 13 Aug 2015 13:02:03 +0000 (15:02 +0200)
committerNathan Cutler <ncutler@suse.com>
Tue, 6 Oct 2015 09:00:42 +0000 (11:00 +0200)
Fixes: #12363
backport: hammer

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
(cherry picked from commit 423cf136f15df3099c9266f55932542d303c2713)

src/rgw/rgw_rest.cc

index 604313c6a3078da5a8121e92ddf99b72ebb9c8f8..083fa832eec0f70dcbd557d6c1d000a8023a0786 100644 (file)
@@ -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;
   }