We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a43baec commit 4635314Copy full SHA for 4635314
meilisearch/_httprequests.py
@@ -33,6 +33,7 @@ def send_request(
33
Mapping[str, Any],
34
Sequence[Mapping[str, Any]],
35
List[str],
36
+ bool,
37
bytes,
38
str,
39
int,
@@ -60,6 +61,14 @@ def send_request(
60
61
headers=self.headers,
62
data=body,
63
)
64
+ elif isinstance(body, bool):
65
+ data = json.dumps(body)
66
+ request = http_method(
67
+ request_path,
68
+ timeout=self.config.timeout,
69
+ headers=self.headers,
70
+ data=data,
71
+ )
72
else:
73
serialize_body = isinstance(body, dict) or body
74
data = (
@@ -111,6 +120,7 @@ def put(
111
120
112
121
113
122
123
114
124
115
125
116
126
0 commit comments