fix: Use https protocol for site URL

This commit is contained in:
Deepesh Garg
2021-03-11 21:41:46 +05:30
parent 2f4b91172d
commit 799f0daa1e

View File

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