From 700234fe2decc288e433fa69261ed4940d09a7dd Mon Sep 17 00:00:00 2001 From: welefen Date: Sun, 6 Jul 2014 15:25:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=96=87=E4=BB=B6=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/Lib/Core/Http.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Lib/Core/Http.js b/lib/Lib/Core/Http.js index a07ea8a3..dadf9f09 100644 --- a/lib/Lib/Core/Http.js +++ b/lib/Lib/Core/Http.js @@ -118,7 +118,7 @@ module.exports = Class(function(){ } //上传的数据中是否含有文件的检测正则 var multiReg = /^multipart\/(form-data|related);\s*boundary=(?:"([^"]+)"|([^;]+))$/i; - if (multiReg.test(this.http.contentType)) { + if (multiReg.test(this.req.headers['content-type'])) { return this._filePost(); }else{ return this._commonPost();