]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: enforce Content-Type in Swift responses.
authorRadoslaw Zarzynski <rzarzynski@mirantis.com>
Tue, 23 Jun 2015 09:54:09 +0000 (11:54 +0200)
committerNathan Cutler <ncutler@suse.com>
Mon, 5 Oct 2015 14:00:59 +0000 (16:00 +0200)
commitc9226afd7b9e54a8998bf88dfbd6753b262fdf9d
tree0ccff0cf4738a9806a1e534588b91707e36644de
parent9139fbbc1ab3ae455d2e36b3a768601ccb216801
rgw: enforce Content-Type in Swift responses.

Swift sends Content-Type HTTP header even if the response
doesn't contain body. We have this behaviour implemented
until applying some changes in end_header() function.
Unfortunately, lack of Content-Type causes early exits in
many Tempest's tests for Swift API verification.

Fixes: #12157
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
(cherry picked from commit 106aeba206736d4080326f9bc191876bed63370b)
src/rgw/rgw_rest.cc