eclipse-ee4j / eclipse-ee4j/jersey

Remove `Content-Length` header when encoding response content

Open
#5,482 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
730
Forks
382
PR merge metrics
No merged PRs in 30d

Description

Hi,

as mentioned in a comment
https://github.com/eclipse-ee4j/jersey/blob/21325cbb9dfe6392f1df972fb1f7f7f0275b3c85/core-common/src/main/java/org/glassfish/jersey/spi/ContentEncoder.java#L107
the `Content-Length` header needs to be removed when the response content is encoded as e.g. gzip because that likely changes the length.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.