]> 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)
committerLoic Dachary <ldachary@redhat.com>
Thu, 3 Sep 2015 11:28:50 +0000 (13:28 +0200)
Fixes: #12363
backport: hammer

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

src/rgw/rgw_rest.cc

index 7f9472de8cc6774af7597091aae6636a5ab68e21..ee1c6227aaa714a55fa2e32fe65a73880347be4a 100644 (file)
@@ -513,7 +513,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;
   }