Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RESTEASY-3303] Partial revert of RESTEASY-2874. We should not overri… #3542

Merged
merged 1 commit into from Apr 5, 2023

Conversation

jamezp
Copy link
Contributor

@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

@@ -75,7 +75,7 @@ public void testCount() throws Exception {
public void testNullJaxb() throws Exception {
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
Contributor 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
10 checks passed
@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
1 participant