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

Fix passing host to in headers #268

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

liuchong
Copy link

@liuchong liuchong commented Apr 7, 2021

In WebSocketBaseClient, there is a hardcoded Host header. This pull request will let it use Host in the passed in extra headers, and if it is not exists in extra headers, will use the origin logic to set Host.

Copy link
Collaborator

@auvipy auvipy left a comment

Choose a reason for hiding this comment

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

it would be nice to have some test added for the change proposed

ws4py/client/__init__.py Show resolved Hide resolved
Signed-off-by: Asif Saif Uddin <[email protected]>
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