From aaf2f645f0bce75124f372f2ca21a993c0b117e4 Mon Sep 17 00:00:00 2001 From: jasonh Date: Tue, 6 Sep 2022 10:30:44 +0800 Subject: [PATCH] add return promise function checkBasicAuth --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 7b8344b..4f84eab 100644 --- a/src/index.ts +++ b/src/index.ts @@ -15,7 +15,7 @@ function init(options: Options = {}) { } return (req: IncomingMessage, res: ServerResponse) => { - checkBasicAuth(req, res, users) + return checkBasicAuth(req, res, users) } }