[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:
Christine Spang 2017-03-13 12:24:40 -07:00
parent 7d229f6377
commit cd70f845b1

View file

@ -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" '