]> 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)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 18 Dec 2015 18:21:05 +0000 (10:21 -0800)
commit4e5921dbc7d1c51feb4cc5c03aa59a432742765e
treeaf69052c505bc2a3d0d30747cb0c60682337f66b
parent2340fbdbaa365b1b2bd7e325b432d0761bd32aa4
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
src/rgw/rgw_civetweb.cc
src/rgw/rgw_civetweb.h
src/rgw/rgw_fcgi.cc
src/rgw/rgw_fcgi.h