@baiducloud/restclient
Advanced tools
Comparing version 1.0.2-beta to 1.0.3-beta
@@ -290,5 +290,4 @@ define(function () { 'use strict'; | ||
req.headers = req.headers || {}; | ||
req.headers['Content-Type'] = 'application/x-www-form-urlencoded;charset=utf-8'; | ||
if (isObject(req.data)) { | ||
if (isObject(req.data) && !(req.data instanceof FormData)) { | ||
req.headers['Content-Type'] = 'application/json;charset=utf-8'; | ||
@@ -295,0 +294,0 @@ req.data = JSON.stringify(req.data); |
{ | ||
"name": "@baiducloud/restclient", | ||
"version": "1.0.2-beta", | ||
"version": "1.0.3-beta", | ||
"description": "Restful HTTP Client for broswer.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25638
6
427