On Nov 30, 2016 11:46 AM, "Luca Toscano" <toscano.l...@gmail.com> wrote:
Hi everybody, while working on https://bz.apache.org/bugzilla/show_bug.cgi?id=51350 a user asked why httpd send the "Content-Length: 0" header for HTTP 204 responses given the following statement in the RFC: https://tools.ietf.org/html/rfc7230#page-30 "A server MUST NOT send a Content-Length header field in any response with a status code of 1xx (Informational) or 204 (No Content)." I was looking at the spec for 101 and 100 responses and think we are going way overboard on replying with a 100 response. Looking at the 101 example, we should send a reply of 0 or a few very explicit header fields and save the balance of output headers for the final response code. Otherwise these all seem to be wasted network bytes. WDYT?