Commit 6a55c623 authored by Wei Shoulin's avatar Wei Shoulin
Browse files

bug

parent 9546a255
Pipeline #7682 failed with stages
in 0 seconds
...@@ -16,7 +16,7 @@ def get_request_url(endpoint: str) -> str: ...@@ -16,7 +16,7 @@ def get_request_url(endpoint: str) -> str:
base_url = os.getenv("CSST_DFS_GATEWAY", None) base_url = os.getenv("CSST_DFS_GATEWAY", None)
if not base_url: if not base_url:
raise ValueError("env CSST_DFS_GATEWAY is not set.") 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 base_url = "http://" + base_url
return f"{base_url}{endpoint}" return f"{base_url}{endpoint}"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment