badmfck-api-server 1.6.5 → 1.6.7
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.
|
@@ -47,7 +47,7 @@ async function Initializer(services) {
|
|
|
47
47
|
exports.Initializer = Initializer;
|
|
48
48
|
class APIService extends BaseService_1.BaseService {
|
|
49
49
|
static nextLogID = 0;
|
|
50
|
-
version = "1.6.
|
|
50
|
+
version = "1.6.6";
|
|
51
51
|
options;
|
|
52
52
|
monitor;
|
|
53
53
|
monitorIndexFile;
|
|
@@ -143,6 +143,12 @@ class APIService extends BaseService_1.BaseService {
|
|
|
143
143
|
if (this.options.onNetworkLog && log)
|
|
144
144
|
this.options.onNetworkLog(log);
|
|
145
145
|
const execute = async () => {
|
|
146
|
+
const body = req.body;
|
|
147
|
+
if (req.query && typeof req.query === "object") {
|
|
148
|
+
for (let i in req.query) {
|
|
149
|
+
body[i] = req.query[i];
|
|
150
|
+
}
|
|
151
|
+
}
|
|
146
152
|
const httpRequest = {
|
|
147
153
|
raw: req,
|
|
148
154
|
method: req.method,
|