Skip to content

Conversation

@jamezp
Copy link
Member

@jamezp jamezp commented Apr 5, 2023

…de the Content-Type in proxies where the header possibly set via other means. Otherwise, we should allow the entity to always override the Content-Type.

https://issues.redhat.com/browse/RESTEASY-3303

Response response = client.target(generateURL("/my/null")).request().header("Content-Type", "application/xml")
.post(Entity.text(""));
Assert.assertEquals(HttpResponseCodes.SC_BAD_REQUEST, response.getStatus());
Assert.assertEquals(HttpResponseCodes.SC_UNSUPPORTED_MEDIA_TYPE, response.getStatus());
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was changed in #2794 (RESTEASY-2874) and reverted back here. This should likely not have been changed.

The test itself might be incorrect, but it shouldn't have been changed.

…de the Content-Type in proxies where the header possibly set via other means. Otherwise, we should allow the entity to always override the Content-Type.

https://issues.redhat.com/browse/RESTEASY-3303
Signed-off-by: James R. Perkins <jperkins@redhat.com>
@jamezp jamezp merged commit 63e64f4 into resteasy:main Apr 5, 2023
@jamezp jamezp deleted the RESTEASY-3303 branch April 5, 2023 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant