cgserver 12.3.1 → 12.3.2

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.
package/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # 版本更新日志
2
2
 
3
+ ## v12.3.2
4
+ - get 请求的参数修正
5
+
3
6
  ## v12.3.1
4
7
  - bugfix
5
8
  - serverwebsocket支持wss
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Request = void 0;
4
- const url_1 = require("url");
5
4
  const Core_1 = require("../../../Core/Core");
6
5
  const Log_1 = require("../../../Logic/Log");
7
6
  class Request {
@@ -159,10 +158,7 @@ class Request {
159
158
  }
160
159
  let quote_index = path.indexOf("?");
161
160
  if (quote_index >= 0) {
162
- let url = new url_1.URL(path);
163
- url.searchParams.forEach((value, name, searchParams) => {
164
- this._params[name] = value;
165
- });
161
+ this._params = this._req.query || {};
166
162
  path = path.substring(0, quote_index);
167
163
  }
168
164
  let params = path.split("/");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cgserver",
3
- "version": "12.3.1",
3
+ "version": "12.3.2",
4
4
  "author": "trojan",
5
5
  "type": "commonjs",
6
6
  "description": "free for all.Websocket or Http",