mirror of
https://github.com/sprockets/sprockets.mixins.http.git
synced 2024-11-14 11:19:28 +00:00
Check explicitly for None
This fixes a bug where a key error would occur if an empty array or dict is passed in
This commit is contained in:
parent
cdd95b47bc
commit
3aef000228
1 changed files with 1 additions and 1 deletions
|
@ -452,7 +452,7 @@ class HTTPClientMixin:
|
|||
request_headers = {}
|
||||
request_headers.setdefault(
|
||||
'Accept', ', '.join([str(ct) for ct in AVAILABLE_CONTENT_TYPES]))
|
||||
if body:
|
||||
if body is not None:
|
||||
request_headers.setdefault(
|
||||
'Content-Type',
|
||||
str(content_type) or str(CONTENT_TYPE_MSGPACK))
|
||||
|
|
Loading…
Reference in a new issue