Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed the limitation of only http urls by allowing https. This is n…

…o longer needed(was it?)
  • Loading branch information...
commit b11157c8623bb6e1b792ffac176cb1fc7bc79c72 1 parent 3c38cb1
Stanislav Ageev graylikeme authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 trombi/client.py
4 trombi/client.py
View
@@ -64,9 +64,9 @@ def from_uri(uri, fetch_args=None, io_loop=None, **kwargs):
if p.params or p.query or p.fragment:
raise ValueError(
'Invalid database address: %s (extra query params)' % uri)
- if p.scheme != 'http':
+ if not p.scheme in ('http', https'):
raise ValueError(
- 'Invalid database address: %s (only http:// is supported)' % uri)
+ 'Invalid database address: %s (only http:// and https:// are supported)' % uri)
baseurl = urlunsplit((p.scheme, p.netloc, '', '', ''))
server = Server(baseurl, fetch_args, io_loop=io_loop, **kwargs)
Please sign in to comment.
Something went wrong with that request. Please try again.