Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: remove url join (#9635)

Joebc43efba75af
diff --git a/api/services/enterprise/base.py b/api/services/enterprise/base.py
index 380051b40d8..92098f06cca 100644
--- a/api/services/enterprise/base.py
+++ b/api/services/enterprise/base.py
@@ -1,5 +1,4 @@
import os
-from urllib.parse import urljoin
import requests
@@ -16,7 +15,6 @@ class EnterpriseRequest:
@classmethod
def send_request(cls, method, endpoint, json=None, params=None):
headers = {"Content-Type": "application/json", "Enterprise-Api-Secret-Key": cls.secret_key}
- url = urljoin(cls.base_url, endpoint)
+ url = f"{cls.base_url}{endpoint}"
response = requests.request(method, url, json=json, params=params, headers=headers, proxies=cls.proxies)
-
return response.json()