You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a request is triggered to a server endpoint, which does not provide Content-length, the ApacheConnector adds Content-length with the value equals to -1.
The main problem is that the ApacheConnector generates the header value, which is against the specification, i.e. when the content length is not know, this header should not be provided at all, not provided with a negative value.
The text was updated successfully, but these errors were encountered:
When a request is triggered to a server endpoint, which does not provide Content-length, the ApacheConnector adds Content-length with the value equals to -1.
The problematic code is here:
jersey/connectors/apache-connector/src/main/java/org/glassfish/jersey/apache/connector/ApacheConnector.java
Lines 512 to 514 in e84b5e8
It should probably be:
The main problem is that the ApacheConnector generates the header value, which is against the specification, i.e. when the content length is not know, this header should not be provided at all, not provided with a negative value.
The text was updated successfully, but these errors were encountered: