From d39a66007fa7211c00a67f9cd898e55551f5ae62 Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Fri, 6 Mar 2015 13:14:26 +0100 Subject: [PATCH] rgw: send Content-Length in response for PUT on Swift container. Fixes: #11036 Backport: hammer Signed-off-by: Radoslaw Zarzynski (cherry picked from commit 10c1f1aa1e09df5edf5d2f9f9b0273ddbcb384fa) --- src/rgw/rgw_rest_swift.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rgw/rgw_rest_swift.cc b/src/rgw/rgw_rest_swift.cc index 891f134bef39b..f625d7fd37d26 100644 --- a/src/rgw/rgw_rest_swift.cc +++ b/src/rgw/rgw_rest_swift.cc @@ -383,7 +383,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); } -- 2.39.5