isite 2025.11.2 → 2025.11.3
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/lib/routing.js +10 -4
- package/package.json +1 -1
package/lib/routing.js
CHANGED
|
@@ -1306,7 +1306,12 @@ module.exports = function init(____0) {
|
|
|
1306
1306
|
req.queryRaw = req.urlParserRaw.query;
|
|
1307
1307
|
|
|
1308
1308
|
____0.validateRoute(req, res, (req, res) => {
|
|
1309
|
-
if (
|
|
1309
|
+
if (req.method.like('options') || req.method.like('head')) {
|
|
1310
|
+
res.set('Content-Length', 50 * 1000);
|
|
1311
|
+
res.status(200).end();
|
|
1312
|
+
return;
|
|
1313
|
+
}
|
|
1314
|
+
if (!req.method.like('get') && req.headers[____0.strings[18]] && req.headers[____0.strings[18]].match(/urlencoded/i)) {
|
|
1310
1315
|
req.on('data', function (data) {
|
|
1311
1316
|
req.bodyRaw += data;
|
|
1312
1317
|
});
|
|
@@ -1350,7 +1355,7 @@ module.exports = function init(____0) {
|
|
|
1350
1355
|
});
|
|
1351
1356
|
|
|
1352
1357
|
return;
|
|
1353
|
-
} else if (!req.method.
|
|
1358
|
+
} else if (!req.method.like('get') && req.headers[____0.strings[18]] && req.headers[____0.strings[18]].match(/json/i)) {
|
|
1354
1359
|
req.on('data', function (data) {
|
|
1355
1360
|
req.bodyRaw += data;
|
|
1356
1361
|
});
|
|
@@ -1368,7 +1373,7 @@ module.exports = function init(____0) {
|
|
|
1368
1373
|
_0xrrxo.handleRoute(req, res, req.route);
|
|
1369
1374
|
}
|
|
1370
1375
|
});
|
|
1371
|
-
} else if (!req.method.
|
|
1376
|
+
} else if (!req.method.like('get')) {
|
|
1372
1377
|
req.on('data', function (data) {
|
|
1373
1378
|
req.bodyRaw += data;
|
|
1374
1379
|
});
|
|
@@ -1418,7 +1423,8 @@ module.exports = function init(____0) {
|
|
|
1418
1423
|
res.set('help-eror-message', 'unhandled route help : ' + req.urlParser.pathname);
|
|
1419
1424
|
}
|
|
1420
1425
|
|
|
1421
|
-
if (req.method.
|
|
1426
|
+
if (req.method.like('options') || req.method.like('head')) {
|
|
1427
|
+
res.set('Content-Length', 50 * 1000);
|
|
1422
1428
|
res.status(200).end();
|
|
1423
1429
|
return;
|
|
1424
1430
|
}
|