diff --git a/lib/http.js b/lib/http.js index d650733..2883885 100644 --- a/lib/http.js +++ b/lib/http.js @@ -54,6 +54,7 @@ var HTTPObject = function() { var _k = key.toLowerCase(); var _v = headers[key].toLowerCase(); if (_k === "content-type" && _v === "application/json") { + this.dataType = "json"; return true; } }