Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-dfs
csst-dfs-client
Commits
8007949c
Commit
8007949c
authored
Dec 27, 2024
by
Wei Shoulin
Browse files
http prefix
parent
61f34399
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_dfs_client/common/request.py
View file @
8007949c
...
...
@@ -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
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment