mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-22 16:26:08 +08:00
[client-app] Don't check for key membership on null
This bug snuck in when I landed the DeveloperBarCurlRequest fix for the Content-Type header.
This commit is contained in:
parent
7d229f6377
commit
cd70f845b1
|
@ -30,6 +30,7 @@ class DeveloperBarCurlRequest
|
|||
# processed by node-request yet. Therefore, it will not have Content-Type
|
||||
# set in the request headers.
|
||||
if (request.json and not request._json and
|
||||
request.headers and
|
||||
'content-type' not in request.headers and
|
||||
'Content-Type' not in request.headers)
|
||||
headers += '-H "Content-Type: application\/json" '
|
||||
|
|
Loading…
Reference in a new issue