mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 23:41:42 +00:00
Update http.js
This commit is contained in:
parent
8318fba344
commit
6c38d81bf0
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user