style:lint
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
Build Action / Build-LiteLoader (push) Canceled after 0s
Build Action / Build-Shell (push) Canceled after 0s

This commit is contained in:
手瓜一十雪 committed 2025-02-09 13:00:54 +08:00
1 parent a9e9c81505
commit 7fd8c0c822
1 file changed
+1 -1
+1 -1
View File
@@ -61,7 +61,7 @@ export class OB11HttpServerAdapter extends IOB11NetworkAdapter<HttpServerConfig>
}
if (!typeis.hasBody(req)) {
next();
return
return;
}
// 兼容处理没有带content-type的请求
req.headers['content-type'] = 'application/json';