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

fast work-around to make websocket query params works #15

Merged
merged 3 commits into from
Sep 27, 2019

Conversation

grubberr
Copy link
Contributor

please use it as reference only
maybe it is not cover all cases :)

Copy link
Contributor

@masipcat masipcat left a comment

Choose a reason for hiding this comment

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

Can you update the version in setup.py?

I'll be happy to merge this PR :)

@@ -86,11 +87,14 @@ def __aiter__(self):
(bytes(k.lower(), "utf8"), bytes(v, "utf8"))
for k, v in self.headers.items()
]

url = URL(self.path)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use urllib.parse.urlparse() instead to avoid yarl as a dependency?

import urllib.parse
result = urllib.parse.urlparse("/ws?token=token")
# ...
path = result.path
query_string = result.query.encode("ascii")

- up version 1.1.0 -> 1.1.1
@grubberr
Copy link
Contributor Author

Hey,
I have updated PR

Copy link
Contributor

@masipcat masipcat 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!

@masipcat masipcat merged commit c063be2 into vinissimus:master Sep 27, 2019
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.

None yet

2 participants