We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 76906c5 + ecf2cc3 commit 841803fCopy full SHA for 841803f
pusher/__init__.py
@@ -19,8 +19,12 @@
19
app_id_re = re.compile('^[0-9]+$')
20
21
def url2options(url):
22
- assert url.startswith('http://'), "invalid URL"
23
- url = url[7:]
+ if url.startswith('http://'):
+ url = url[7:]
24
+ elif url.startswith('https://'):
25
+ url = url[8:]
26
+ else:
27
+ assert False, "invalid URL"
28
key, url = url.split(':', 1)
29
secret, url = url.split('@', 1)
30
host, url = url.split('/', 1)
0 commit comments