Commit 8007949c authored by Wei Shoulin's avatar Wei Shoulin
Browse files

http prefix

parent 61f34399
......@@ -16,6 +16,8 @@ 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://"):
base_url = "http://" + base_url
return f"{base_url}{endpoint}"
def request_error_handler_decorator(func):
......
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