Skip to content

Commit 3c0d6c3

Browse files
committed
feat: support put method
1 parent cb6e53a commit 3c0d6c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

volcenginesdkcore/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ def update_params_for_auth(self, host, path, method, headers, querys, auth_setti
558558

559559
for auth in auth_settings:
560560
headers["Host"] = host
561-
if method == "POST":
561+
if method in ["POST", "PUT", "DELETE", "PATCH"]:
562562
body = json.dumps(body)
563563
else:
564564
body = ""

0 commit comments

Comments
 (0)