Loading csst_dfs_client/common/request.py +1 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ def get_request_url(endpoint: str) -> str: base_url = os.getenv("CSST_DFS_GATEWAY", None) if not base_url: raise ValueError("env CSST_DFS_GATEWAY is not set.") if not endpoint.startswith("http://"): if not base_url.startswith("http://"): base_url = "http://" + base_url return f"{base_url}{endpoint}" Loading Loading
csst_dfs_client/common/request.py +1 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ def get_request_url(endpoint: str) -> str: base_url = os.getenv("CSST_DFS_GATEWAY", None) if not base_url: raise ValueError("env CSST_DFS_GATEWAY is not set.") if not endpoint.startswith("http://"): if not base_url.startswith("http://"): base_url = "http://" + base_url return f"{base_url}{endpoint}" Loading