Skip to content

Problems with parsing URLs #2

Description

@oleksandr

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions