Commit e352ac59 by liimin

2.0.1

1 parent 2624b12f
{ {
"name": "glsx-common", "name": "glsx-common",
"version": "2.0.0", "version": "2.0.1",
"description": "glsx common", "description": "glsx common",
"main": "./dist/glsx-common.js", "main": "./dist/glsx-common.js",
"private": false, "private": false,
......
...@@ -38,8 +38,7 @@ Http.prototype.create = function () { ...@@ -38,8 +38,7 @@ Http.prototype.create = function () {
if (method == 'get') { if (method == 'get') {
config.params = data config.params = data
} else if (method == 'post') { } else if (method == 'post') {
if (config.format == 'formData') { if (config.headers['Content-Type'] == 'multipart/form-data') {
config.headers['Content-Type'] = 'multipart/form-data'
config.data = util.appendFormData(data) config.data = util.appendFormData(data)
} else { } else {
config.data = qs.stringify(data) config.data = qs.stringify(data)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!