Skip to content

Commit 76e42d4

Browse files
committed
feat: support https
1 parent 92d39a4 commit 76e42d4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

volcenginesdkcore/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def _build_query(prefix, querys): # prefix is string and querys is a dict
176176
auth_settings=auth_settings, body=body, service=service)
177177

178178
# request url
179-
url = self.configuration.host + true_path
179+
url = self.configuration.schema + "://" + self.configuration.host + true_path
180180

181181
# perform request and return response
182182
response_data = self.request(

volcenginesdkcore/configuration.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ def __init__(self):
2929

3030
# Default Base url
3131
self.host = "open.volcengineapi.com"
32+
# Schema Support http or https
33+
self.schema = "http"
3234
# Temp file folder for downloading files
3335
self.temp_folder_path = None
3436

0 commit comments

Comments
 (0)