fix: Always use https scheme

This commit is contained in:
Deepesh Garg
2021-03-12 12:51:33 +05:30
parent 799f0daa1e
commit 5fab55a564

View File

@@ -39,7 +39,7 @@ def get_webhook_address(connector_name, method, exclude_uri=False):
except RuntimeError:
url = "https://localhost:8000"
server_url = '{uri.scheme}://{uri.netloc}/api/method/{endpoint}'.format(uri=urlparse(url), endpoint=endpoint)
server_url = 'https://{uri.netloc}/api/method/{endpoint}'.format(uri=urlparse(url), endpoint=endpoint)
return server_url