From 1376fbdeba359241d045706c5b1303a40e6b1897 Mon Sep 17 00:00:00 2001 From: HorizonCode Date: Fri, 12 May 2023 15:05:06 +0200 Subject: [PATCH] replace return with continue --- mod.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mod.ts b/mod.ts index de9fc02..d42634b 100644 --- a/mod.ts +++ b/mod.ts @@ -175,7 +175,7 @@ export class HTTPServer { resolveAction(hrArray); } await requestEvent.respondWith(response); - return; + continue; } const routeName = `${requestEvent.request.method}@${filepath}`; @@ -252,6 +252,7 @@ export class HTTPServer { this.handleNotFound(routeRequest, routeReply, requestEvent); } } catch (_err) { + console.log(_err); // Ignore http connections that where closed before reply was sent } }