From 5fab55a564bfc8fb4feb5e85035fe8a3d38aec5c Mon Sep 17 00:00:00 2001 From: Deepesh Garg Date: Fri, 12 Mar 2021 12:51:33 +0530 Subject: [PATCH] fix: Always use https scheme --- erpnext/erpnext_integrations/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/erpnext_integrations/utils.py b/erpnext/erpnext_integrations/utils.py index bfda4b0ffc7..3fb84c5fd37 100644 --- a/erpnext/erpnext_integrations/utils.py +++ b/erpnext/erpnext_integrations/utils.py @@ -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