eclipse-ee4j / eclipse-ee4j/jersey
Content Length Set to 0 on HEAD Requests
Open
Priority: Major
Type: Bug
- Dominant language
- Java
- Stars
- 730
- Forks
- 382
- PR merge metrics
- No merged PRs in 30d
Description
When sending HEAD requests, if the response size exceeds OUTBOUND_CONTENT_LENGTH_BUFFER, the content length is set to zero. Conversely, if you make a GET request with the content length greater than OUTBOUND_CONTENT_LENGTH_BUFFER, the content length header is not set at all.
It seems that the HEAD request should also exclude the content length header vs. setting the size to 0.
We are currently running Jersey 2.22.1 w/ Dropwizard 0.7.1 which I believe integrates Jersey into Jetty as a servlet (in case this is relevant).
#### Affected Versions
[2.22.1]
Contributor guide
Assessment
This issue has not been assessed yet.