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

Problems with parsing URLs #2

Open
oleksandr opened this issue Oct 25, 2010 · 0 comments
Open

Problems with parsing URLs #2

oleksandr opened this issue Oct 25, 2010 · 0 comments

Comments

@oleksandr
Copy link

On OSX 10.7 and Python 2.7 there's a problem with parsing "ws://" URLs using urlparse module that does not support "ws/wss" schemes. A workaround:

@classmethod
def _parse_url(cls, url):
    urlparse.uses_netloc.append("ws")
    urlparse.uses_fragment.append("ws")
    urlparse.uses_netloc.append("wss")
    urlparse.uses_fragment.append("wss")
    p = urlparse.urlparse(url)
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

No branches or pull requests

1 participant