https://bz.apache.org/bugzilla/show_bug.cgi?id=69379

--- Comment #6 from m...@jfrog.com ---
It is as simple as this: 

On Tomcat 9.x.x and Jersey, create an empty resource accepting HEAD requests:

@HEAD
@Path("/test/head")
public Response testHead() {
  return Response.ok().build();
}

curl --head http://<host:port>/test/head 

Observe no `Content-length' header returned.

Do the same on Tomcat 10.x.x.

Observe `Content-length: 0` returned.

Now imagine a client expecting `Content-length` header to be returned if and
only if there is actual content. This is a behavioral change and essentially a
bug.

-- 
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

Reply via email to