]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: Do not send a Content-Type on a '304 Not Modified' response
authorWido den Hollander <wido@42on.com>
Mon, 21 Mar 2016 15:50:49 +0000 (16:50 +0100)
committerVicente Cheng <freeze.bilsted@gmail.com>
Thu, 31 Mar 2016 09:29:29 +0000 (17:29 +0800)
commite53751d0e52f6fb611d9bd81fe2115cd7ce533b3
tree826c1c6dab40757d533264a8ef39694a29a2131f
parent19dbc2598d15d0676017abe4fb75f7ddc3248119
rgw: Do not send a Content-Type on a '304 Not Modified' response

When we say the Content has not changed we should not respond
with a content type which defaults to binary/octet stream.

Fixes: #15119
Signed-off-by: Wido den Hollander <wido@42on.com>
(cherry picked from commit 471fa29e643fcfd5e1383fb987f99b5b21038ed7)
src/rgw/rgw_rest_s3.cc