mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-20 13:40:10 +08:00
style:lint
This commit is contained in:
parent
9e51a661a4
commit
e8cc68bdea
@ -62,12 +62,12 @@ export class OB11HttpServerAdapter extends IOB11NetworkAdapter<HttpServerConfig>
|
|||||||
|
|
||||||
this.app.use((req, res, next) => {
|
this.app.use((req, res, next) => {
|
||||||
if (this.isFinished(req)) {
|
if (this.isFinished(req)) {
|
||||||
next()
|
next();
|
||||||
return
|
return;
|
||||||
}
|
}
|
||||||
if (!this.hasbody(req)) {
|
if (!this.hasbody(req)) {
|
||||||
next()
|
next();
|
||||||
return
|
return;
|
||||||
}
|
}
|
||||||
// 兼容处理没有带content-type的请求
|
// 兼容处理没有带content-type的请求
|
||||||
req.headers['content-type'] = 'application/json';
|
req.headers['content-type'] = 'application/json';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user