[Varnish] #1826: 503 backend error after response with 204 without a body, varnish 4.1

Varnish varnish-bugs at varnish-cache.org
Wed Dec 2 18:28:12 CET 2015


#1826: 503 backend error after response with 204 without a body, varnish 4.1
--------------------------+----------------------
 Reporter:  xrowkristina  |       Owner:
     Type:  defect        |      Status:  closed
 Priority:  high          |   Milestone:
Component:  build         |     Version:  4.1.0
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |
--------------------------+----------------------
Changes (by fgsch):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 Your backend is returning a Content-Length. This is invalid for 204
 responses.

 As per rfc7230 3.3.2 p31:

 {{{
    A server MUST NOT send a Content-Length header field in any response
    with a status code of 1xx (Informational) or 204 (No Content).  A
    server MUST NOT send a Content-Length header field in any 2xx
    (Successful) response to a CONNECT request (Section 4.3.6 of
    [RFC7231]).
 }}}

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



More information about the varnish-bugs mailing list