From 7f1fce92b290d3865abd5ebe269e7a498327fa9f Mon Sep 17 00:00:00 2001 From: HorizonCode Date: Fri, 12 May 2023 14:51:36 +0200 Subject: [PATCH] revert last change --- mod.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/mod.ts b/mod.ts index d5f4d9f..de9fc02 100644 --- a/mod.ts +++ b/mod.ts @@ -169,14 +169,12 @@ export class HTTPServer { const readableStream = file.readable; const response = new Response(readableStream); - if (middlewarePromise) { const pt = performance.now() - perStart; const hrArray: number[] = [0, Math.trunc(pt * 1000000)]; resolveAction(hrArray); } await requestEvent.respondWith(response); - file.close(); // close file after serve return; }