[Varnish] #1809: Allow a Content-Length: 0 header on a 204 response

Varnish varnish-bugs at varnish-cache.org
Fri Oct 23 14:06:05 CEST 2015


#1809: Allow a Content-Length: 0 header on a 204 response
--------------------------------+--------------------
 Reporter:  widodh              |       Owner:
     Type:  defect              |      Status:  new
 Priority:  normal              |   Milestone:
Component:  build               |     Version:  trunk
 Severity:  normal              |  Resolution:
 Keywords:  204,content-length  |
--------------------------------+--------------------

Comment (by widodh):

 I've looked at this with a colleague and he pointed me at RFC7230:
 https://tools.ietf.org/html/rfc7230#section-3.3.2

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

 That clarifies it. Varnish is keeping to the standard, BUT, the comment in
 the code should be updated that it points to RFC7230 and not to RFC2616.

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1809#comment:2>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator



More information about the varnish-bugs mailing list