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.
1 parent f3122db commit dfde525Copy full SHA for dfde525
curl_cffi/requests/utils.py
@@ -455,7 +455,7 @@ def set_curl_options(
455
update_header_line(
456
header_lines, "Content-Type", "application/x-www-form-urlencoded"
457
)
458
- if isinstance(data, (str, bytes)):
+ if isinstance(data, (str, bytes)) and data:
459
update_header_line(header_lines, "Content-Type", "application/octet-stream")
460
461
# Never send `Expect` header.
0 commit comments