From d6b464f34b805dfe0dc8f1db9f5ff6532211fbef Mon Sep 17 00:00:00 2001 From: mattjegan Date: Tue, 5 Sep 2017 21:29:08 +1000 Subject: [PATCH] add check for null contentType --- lib/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.js b/lib/utils.js index a969bb6..60b127f 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -14,7 +14,7 @@ const determineTransport = function (transports, url) { } const negotiateDecoder = function (decoders, contentType) { - if (contentType === undefined) { + if (contentType === undefined || contentType === null) { return decoders[0] }