Skip to content

Commit 6e912be

Browse files
committed
fix: http request when body is empty dict
1 parent eadeccb commit 6e912be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

meilisearch_python_sdk/_http_requests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ async def _send_request(
3434
) -> Response:
3535
headers = build_headers(content_type)
3636
try:
37-
if not body:
37+
if body is None:
3838
response = await http_method(path)
3939
elif content_type == "application/json":
4040
response = await http_method(path, json=body, headers=headers)

0 commit comments

Comments
 (0)