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,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
|
-
|
|
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("/");
|