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
- //特殊处理C#的post x-www-form-urlencoded 数据,这个数据很奇怪会把整体数据作为一个key,然后value为空字符串
57
- let keys = Object.keys(body);
58
- if (keys.length == 1
59
- && body[keys[0]] == ""
60
- && Core_1.core.isObject(keys[0])) {
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解析
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cgserver",
3
- "version": "8.6.2",
3
+ "version": "8.6.4",
4
4
  "author": "trojan",
5
5
  "type": "commonjs",
6
6
  "description": "free for all.Websocket or Http",