fix: #761
Build Action / Build-LiteLoader (push) Canceled after 0s
Build Action / Build-Shell (push) Canceled after 0s
Build Release / check-version (push) Canceled after 0s
Build Release / Build-LiteLoader (push) Canceled after 0s
Build Release / Build-Shell (push) Canceled after 0s
Build Release / release-napcat (push) Canceled after 0s

This commit is contained in:
手瓜一十雪 committed 2025-02-04 21:22:36 +08:00
1 parent a812c568e4
commit feb84809ec
1 file changed
+1 -1
+1 -1
View File
@@ -60,7 +60,7 @@ export class OB11HttpServerAdapter extends IOB11NetworkAdapter<HttpServerConfig>
}); });
req.on('end', () => { req.on('end', () => {
try { try {
req.body = json5.parse(rawData || '{}'); req.body = { ...json5.parse(rawData || '{}'), ...req.body };
next(); next();
} catch { } catch {
return res.status(400).send('Invalid JSON'); return res.status(400).send('Invalid JSON');