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

Enforce an RFC valid Accept value for remote dev requests #22621

Merged
merged 1 commit into from
Jan 5, 2022

Conversation

gsmet
Copy link
Member

@gsmet gsmet commented Jan 4, 2022

The default Accept header defined in
sun.net.www.protocol.http.HttpURLConnection is invalid and
does not respect the RFC so we override it with a valid value.
RESTEasy is quite strict regarding the RFC and throws an error.
Note that this is just the default HttpURLConnection header value
made valid.
See https://bugs.openjdk.java.net/browse/JDK-8163921
and https://bugs.openjdk.java.net/browse/JDK-8177439

Fixes #20904

The default Accept header defined in
sun.net.www.protocol.http.HttpURLConnection is invalid and
does not respect the RFC so we override it with a valid value.
RESTEasy is quite strict regarding the RFC and throws an error.
Note that this is just the default HttpURLConnection header value
made valid.
See https://bugs.openjdk.java.net/browse/JDK-8163921
and https://bugs.openjdk.java.net/browse/JDK-8177439

Fixes quarkusio#20904
Copy link
Contributor

@geoand geoand left a comment

Choose a reason for hiding this comment

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

Nice catch!

@geoand geoand merged commit 95c3ab3 into quarkusio:main Jan 5, 2022
@quarkus-bot quarkus-bot bot added this to the 2.7 - main milestone Jan 5, 2022
@gsmet gsmet modified the milestones: 2.7 - main, 2.6.2.Final Jan 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remote dev mode with gradle throwing connection refused
2 participants