@cerebral/http
Advanced tools
Comparing version 3.0.2-1506070305752 to 3.0.2-1506092013751
@@ -23,3 +23,3 @@ 'use strict'; | ||
onRequest: function onRequest(xhr, options) { | ||
if (options.headers['Content-Type'] === 'application/x-www-form-urlencoded') { | ||
if (options.headers['Content-Type'].indexOf('application/x-www-form-urlencoded') >= 0) { | ||
options.body = (0, _utils.urlEncode)(options.body); | ||
@@ -26,0 +26,0 @@ } else if (options.headers['Content-Type'].indexOf('application/json') >= 0) { |
{ | ||
"name": "@cerebral/http", | ||
"version": "3.0.2-1506070305752", | ||
"version": "3.0.2-1506092013751", | ||
"description": "HTTP provider for Cerebral 2", | ||
@@ -27,8 +27,8 @@ "main": "lib/index.js", | ||
"peerDependencies": { | ||
"cerebral": "^3.0.2-1506070305752" | ||
"cerebral": "^3.0.2-1506092013751" | ||
}, | ||
"devDependencies": { | ||
"cerebral": "^3.0.2-1506070305752", | ||
"cerebral": "^3.0.2-1506092013751", | ||
"xhr-mock": "^1.9.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
71996