cgserver 8.6.2 → 8.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -53,12 +53,11 @@ class Request {
|
|
|
53
53
|
}
|
|
54
54
|
get postData() {
|
|
55
55
|
var body = this._req.body || {};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
body = keys[0];
|
|
56
|
+
if (this._req.headers["content-type"] == "application/x-www-form-urlencoded") {
|
|
57
|
+
for (let k in body) {
|
|
58
|
+
body = k;
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
62
61
|
}
|
|
63
62
|
// 暂时去掉强制数值转换
|
|
64
63
|
// //服务器会有一层空key的json解析
|