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
6a55c623
Commit
6a55c623
authored
Jan 02, 2025
by
Wei Shoulin
Browse files
bug
parent
9546a255
Pipeline
#7682
failed with stages
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
csst_dfs_client/common/request.py
View file @
6a55c623
...
@@ -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
}
"
...
...
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