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

websocket: set the HTTP host header #1834

Merged
merged 4 commits into from
Oct 20, 2022
Merged

Conversation

MarcoPolo
Copy link
Collaborator

@MarcoPolo MarcoPolo commented Oct 19, 2022

Closes #1829. Fixes a regression in not sending the host header. Sends the host header on WSS dials when an SNI is specified. Also adds a test to verify the host header is seen by the server.

@thibmeu wrote the original patch and I contributed to the test.

Co-authored-by: Thibault Meunier <thibault@cloudflare.com>
p2p/transport/websocket/websocket.go Show resolved Hide resolved
p2p/transport/websocket/websocket.go Outdated Show resolved Hide resolved
p2p/transport/websocket/websocket_test.go Outdated Show resolved Hide resolved
p2p/transport/websocket/websocket_test.go Outdated Show resolved Hide resolved
@marten-seemann marten-seemann changed the title Send host header websocket: set the HTTP host header Oct 19, 2022
@MarcoPolo MarcoPolo merged commit 3e156d0 into master Oct 20, 2022
@p-shahi p-shahi mentioned this pull request Dec 5, 2022
34 tasks
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