floom4 opened a new pull request, #12748: URL: https://github.com/apache/trafficserver/pull/12748
HEAD method with "Content-Length" header was returning 502 code because header differs from payload length as there is no payload in this case. See https://datatracker.ietf.org/doc/html/rfc7540#section-8.1.2.6 ``` A response that is defined to have no payload, as described in [RFC7230], Section 3.3.2, can have a non-zero content-length header field, even though no content is included in DATA frames. ``` See issue #12747 The change fix the behavior by returning true if `data_length` is 0 meaning that the response has no payload, allowing for non-zero 'Content-Length' -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
