Skip to content

Commit bc55910

Browse files
authored
Merge pull request #768 from long2ice/main
fix: http request when body is empty dict
2 parents eadeccb + 6e912be commit bc55910

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)