https://bz.apache.org/bugzilla/show_bug.cgi?id=69379
Bug ID: 69379 Summary: HEAD request behavior change does no adhere to RFC 9110 Product: Tomcat 10 Version: 10.1.30 Hardware: PC OS: Mac OS X 10.1 Status: NEW Severity: normal Priority: P2 Component: Catalina Assignee: dev@tomcat.apache.org Reporter: m...@jfrog.com Target Milestone: ------ The behavioral change is part of the following commit: https://github.com/apache/tomcat/commit/8b5d5ee1fe8c47e3b80b591fedaddc81e5c51a24#diff-8463f112788fc24163560009476ac4509e4fbfb9d970ea4fc9e57de7bcc3f304 According to: https://www.rfc-editor.org/rfc/rfc9110.html#name-head ``` The server SHOULD send the same header fields in response to a HEAD request as it would have sent if the request method had been GET. However, a server MAY omit header fields for which a value is determined only while generating the content. ... Such a response to GET might contain Content-Length and Vary fields, for example, that are not generated within a HEAD response ``` `Content-Length: 0` is now set for a HEAD request, while this header should either be omitted (if the real content length cannot be calculated) or contain the actual content length of the resource, the same as if a GET request has been made. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org