Commit e352ac59 by liimin

2.0.1

1 parent 2624b12f
{
"name": "glsx-common",
"version": "2.0.0",
"version": "2.0.1",
"description": "glsx common",
"main": "./dist/glsx-common.js",
"private": false,
......
......@@ -38,8 +38,7 @@ Http.prototype.create = function () {
if (method == 'get') {
config.params = data
} else if (method == 'post') {
if (config.format == 'formData') {
config.headers['Content-Type'] = 'multipart/form-data'
if (config.headers['Content-Type'] == 'multipart/form-data') {
config.data = util.appendFormData(data)
} else {
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!