]> 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)
committerLoic Dachary <ldachary@redhat.com>
Thu, 3 Sep 2015 11:28:50 +0000 (13:28 +0200)
commitb8aafbc6f9f80f029606a577d73f8685a80225b8
tree8cd714ef5cfba64d3f3fd8ff62982dd545aaf4e9
parent143cfc331efcc7bed8b1cf90d7e3188d0ac7604b
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