eclipse-ee4j / eclipse-ee4j/jersey

Use of Accept-Encoding header does not follow HTTP spec

Open
#3,407 3 comments 0 reactions 0 assignees View on GitHub
Component: core Priority: Minor Type: Bug
Dominant language
Java
Stars
730
Forks
382
PR merge metrics
No merged PRs in 30d

Description

When an encoder is not registered to a client, Jersey does not add an Accept-Encoding header. But, according to RFC 7231, section 5.3.4 "If no Accept-Encoding field is in the request, any content-coding is considered acceptable by the user agent."

But, clearly, Jersey CANNOT accept any content-coding (unless the proper encoders have been registered with the client).

Therefore, Jersey should specifically exclude "by the Accept-Encoding field stating either "identity;q=0" or "*;q=0" without a more specific entry for "identity"."
#### Environment
N/A
#### Affected Versions
[2.4]

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.