Skip to content

Commit

Permalink
rgw: send Content-Length in response for PUT on Swift container.
Browse files Browse the repository at this point in the history
Fixes: ceph#11036
Backport: hammer
Signed-off-by: Radoslaw Zarzynski <[email protected]>
  • Loading branch information
rzarzynski committed Apr 7, 2015
1 parent 5a64fb5 commit 10c1f1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rgw/rgw_rest_swift.cc
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,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);
}

Expand Down

0 comments on commit 10c1f1a

Please sign in to comment.