mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 07:54:46 +00:00
fix: Always use https scheme
This commit is contained in:
@@ -39,7 +39,7 @@ def get_webhook_address(connector_name, method, exclude_uri=False):
|
|||||||
except RuntimeError:
|
except RuntimeError:
|
||||||
url = "https://localhost:8000"
|
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
|
return server_url
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user