From 25860611f765e67ecddd586d80169ebe7f75701b Mon Sep 17 00:00:00 2001 From: Ali Mihandoost Date: Fri, 10 Feb 2023 22:32:27 +0330 Subject: [PATCH] fix(nano-server): type --- core/nano-server/src/nano-server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/nano-server/src/nano-server.ts b/core/nano-server/src/nano-server.ts index 98bff079b..cbd84c919 100644 --- a/core/nano-server/src/nano-server.ts +++ b/core/nano-server/src/nano-server.ts @@ -449,7 +449,7 @@ export class AlwatrConnection { * const bodyData = await connection.requireJsonBody(); * ``` */ - async requireJsonBody(): Promise { + async requireJsonBody(): Promise { // if request content type is json if (this.incomingMessage.headers['content-type'] !== 'application/json') { // eslint-disable-next-line no-throw-literal