]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: send Content-Length in response for PUT on Swift container.
authorRadoslaw Zarzynski <rzarzynski@mirantis.com>
Fri, 6 Mar 2015 12:14:26 +0000 (13:14 +0100)
committerNathan Cutler <ncutler@suse.com>
Wed, 8 Jul 2015 14:12:42 +0000 (16:12 +0200)
Fixes: #11036
Backport: hammer
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
(cherry picked from commit 10c1f1aa1e09df5edf5d2f9f9b0273ddbcb384fa)

src/rgw/rgw_rest_swift.cc

index 21493a1adf37c055b2ae38714fd08ca9533102d8..69b66cb530d736385695db24ae9494c400e5ba46 100644 (file)
@@ -376,7 +376,8 @@ void RGWCreateBucket_ObjStore_SWIFT::send_response()
     ret = STATUS_ACCEPTED;
   set_req_state_err(s, ret);
   dump_errno(s);
-  end_header(s, NULL);
+  /* Propose ending HTTP header with 0 Content-Length header. */
+  end_header(s, NULL, NULL, 0);
   rgw_flush_formatter_and_reset(s, s->formatter);
 }