mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-19 18:24:39 +00:00
Default to https for api url if no schema provided
This commit is contained in:
parent
59ef42c3ab
commit
f24a2b059b
@ -23,7 +23,8 @@ class PiwikRequest(object):
|
||||
@property
|
||||
def api_url(self):
|
||||
url = urlparse.urlparse(self.server_url)
|
||||
return url.netloc + url.path + self.query_script
|
||||
scheme = url.scheme if url.scheme else 'https'
|
||||
return '{}://{}{}{}'.format(scheme, url.netloc, url.path, self.query_script)
|
||||
|
||||
def call(self, default_response=None, **query_params):
|
||||
"""Perform a query to the Piwik server.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user