Skip to content

Commit

Permalink
fix: #761
Browse files Browse the repository at this point in the history
  • Loading branch information
MliKiowa committed Feb 4, 2025
1 parent a812c56 commit feb8480
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/onebot/network/http-server.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { OB11EmitEventContent, OB11NetworkReloadType } from './index';
import { OB11EmitEventContent, OB11NetworkReloadType } from './index';
import express, { Express, NextFunction, Request, Response } from 'express';
import http from 'http';
import { NapCatCore } from '@/core';
Expand Down Expand Up @@ -60,7 +60,7 @@ export class OB11HttpServerAdapter extends IOB11NetworkAdapter<HttpServerConfig>
});
req.on('end', () => {
try {
req.body = json5.parse(rawData || '{}');
req.body = { ...json5.parse(rawData || '{}'), ...req.body };
next();
} catch {
return res.status(400).send('Invalid JSON');
Expand Down

0 comments on commit feb8480

Please sign in to comment.