From b914dac8747bb2b1115bd21c04bf22f2844e5da6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Xalambr=C3=AD?= Date: Wed, 4 Oct 2023 15:50:51 -0500 Subject: [PATCH] Fix linter --- src/server/cors.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/cors.ts b/src/server/cors.ts index 668e382a..eca465fb 100644 --- a/src/server/cors.ts +++ b/src/server/cors.ts @@ -112,7 +112,7 @@ class CORS { if (!allowedHeaders) { // headers wasn't specified, so reflect the request headers let requestHeaders = request.headers.get( - "Access-Control-Request-Headers", + "Access-Control-Request-Headers" ); if (this.isString(requestHeaders)) allowedHeaders = requestHeaders; @@ -258,7 +258,7 @@ class CORS { export async function cors( request: Request, response: Response, - options: CORSOptions = DEFAULT_OPTIONS, + options: CORSOptions = DEFAULT_OPTIONS ): Promise { return new CORS(options).exec(request, response); }