Skip to content

Commit c8ae671

Browse files
author
BitsAdmin
committed
Merge branch 'feature/yg/meego-6781565239-body-empty-sign-handler' into 'integration_2025-10-23_1072456537858'
feat: [development task] feature/yg/meego-6781565239-body-empty-sign-handler (1759941) See merge request iaasng/volcengine-python-sdk!872
2 parents cc96139 + f0564e1 commit c8ae671

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

volcenginesdkcore/interceptor/interceptors/sign_request_interceptor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def update_params_for_auth(host, path, method, headers, querys, auth_settings, b
3939

4040
for auth in auth_settings:
4141
headers["Host"] = host
42-
if method in ["POST", "PUT", "DELETE", "PATCH"]:
42+
if method in ["POST", "PUT", "DELETE", "PATCH"] and body is not None:
4343
body = json.dumps(body)
4444
else:
4545
body = ""

0 commit comments

Comments
 (0)