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

4.x: Use already pre existing response headers to do websocket handshake #5324

Open
wants to merge 1 commit into
base: 4.x
Choose a base branch
from

Conversation

guillaumelamirand
Copy link

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
Author

Can you please add a test?

I have pushed a unit test for it.

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