]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: Do not send a Content-Length header on a 304 response 8253/head
authorWido den Hollander <wido@42on.com>
Tue, 22 Mar 2016 10:35:05 +0000 (11:35 +0100)
committerWido den Hollander <wido@42on.com>
Tue, 22 Mar 2016 10:35:05 +0000 (11:35 +0100)
commitfb4e5cc5d6adc82423d294496855f56e43e8c11d
tree53022de6961ca538b6907f6e2ccb69e56fd6fc6a
parent471fa29e643fcfd5e1383fb987f99b5b21038ed7
rgw: Do not send a Content-Length header on a 304 response

We tell the client that the content has not changed. If we
send a Content-Length header RFC2616 describes that the client
MUST use that new value:

"If a cache uses a received 304 response to update a cache entry,
the cache MUST update the entry to reflect any new field values
given in the response."

Therefor we should not send a Content-Length header

Fixes: #15119
Signed-off-by: Wido den Hollander <wido@42on.com>
src/rgw/rgw_civetweb.cc