We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 711896f + 3ba27ff commit 5fac07aCopy full SHA for 5fac07a
gitlab/client.py
@@ -505,6 +505,12 @@ def http_request(
505
json = None
506
if post_data is None:
507
post_data = {}
508
+ else:
509
+ # booleans does not exists for data (neither for MultipartEncoder):
510
+ # cast to string int to avoid: 'bool' object has no attribute 'encode'
511
+ for k, v in post_data.items():
512
+ if isinstance(v, bool):
513
+ post_data[k] = str(int(v))
514
post_data["file"] = files.get("file")
515
post_data["avatar"] = files.get("avatar")
516
data = MultipartEncoder(post_data)
0 commit comments