Skip to content

Commit cc96139

Browse files
author
BitsAdmin
committed
Merge branch 'dev/lsx/fix-query-form-bool-case' into 'integration_2025-10-23_1072456537858'
feat: [development task] dev/lsx/fix-query-form-bool-case (1759948) See merge request iaasng/volcengine-python-sdk!873
2 parents 32945c0 + 72ebda3 commit cc96139

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

volcenginesdkcore/interceptor/interceptors/build_request_interceptor.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,15 @@ def __req_to_params(self, req, prefix="", params=None):
184184
for key, value in req.items():
185185
if value is None:
186186
continue
187+
if isinstance(value, bool):
188+
value = str(value).lower()
187189
if isinstance(value, list):
188190
for index in range(len(value)):
189191
if isinstance(value[index], dict):
190192
self.__req_to_params(value[index], prefix + key + "." + str((index + 1)) + ".", params)
191193
else:
194+
if isinstance(value[index], bool):
195+
value[index] = str(value[index]).lower()
192196
params.append((prefix + key + "." + str((index + 1)), value[index]))
193197
elif isinstance(value, dict):
194198
self.__req_to_params(value, prefix + key + ".", params)

0 commit comments

Comments
 (0)