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

Use pre existing response headers to do websocket handshake #5324

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

guillaumelamirand
Copy link
Contributor

Motivation:

When we upgrade a WebSocket request, the pre-existing headers set on the response are ignored. This PR attempts to fix this issue by reusing the response.header when doing the websocket handshake.

Conformance:

You should have signed the Eclipse Contributor Agreement as explained in https://github.com/eclipse/vert.x/blob/master/CONTRIBUTING.md
Please also make sure you adhere to the code style guidelines: https://github.com/vert-x3/wiki/wiki/Vert.x-code-style-guidelines

@tsegismont
Copy link
Contributor

Can you please add a test?

@guillaumelamirand
Copy link
Contributor Author

Can you please add a test?

I have pushed a unit test for it.

Copy link
Contributor

@tsegismont tsegismont left a comment

Choose a reason for hiding this comment

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

Thank you @guillaumelamirand !

@tsegismont tsegismont changed the title 4.x: Use already pre existing response headers to do websocket handshake Use pre existing response headers to do websocket handshake Sep 24, 2024
@tsegismont tsegismont added this to the 4.5.11 milestone Sep 24, 2024
@tsegismont tsegismont merged commit e46edce into eclipse-vertx:4.x Sep 24, 2024
7 checks passed
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.

2 participants