]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: Do not send a Content-Length header on status 204
authorWido den Hollander <wido@42on.com>
Wed, 11 Nov 2015 18:01:15 +0000 (19:01 +0100)
committerVicente Cheng <freeze.bilsted@gmail.com>
Thu, 31 Mar 2016 09:29:14 +0000 (17:29 +0800)
commitceb8e19096f7d4ef35ed3ad8fad508aecbfa78ef
treec44d18af2c2898380ffdc33a81d63ef4beeb8f29
parent0418943c6ef8c9649a58003444daeb4b6224fbab
rgw: Do not send a Content-Length header on status 204

RFC7230 says:
  A server MUST NOT send a Content-Length header field in any response with a
  status code of 1xx (Informational) or 204 (No Content).

Fixes: #13582
Signed-off-by: Wido den Hollander <wido@42on.com>
(cherry picked from commit 4e5921dbc7d1c51feb4cc5c03aa59a432742765e)
src/rgw/rgw_civetweb.cc
src/rgw/rgw_civetweb.h
src/rgw/rgw_fcgi.cc
src/rgw/rgw_fcgi.h