diff options
Diffstat (limited to 'std/http/file_server.ts')
-rwxr-xr-x | std/http/file_server.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/std/http/file_server.ts b/std/http/file_server.ts index 5586ed426..84ca45692 100755 --- a/std/http/file_server.ts +++ b/std/http/file_server.ts @@ -127,6 +127,9 @@ export async function serveFile( if (contentTypeValue) { headers.set("content-type", contentTypeValue); } + req.done.then(() => { + file.close(); + }); return { status: 200, body: file, |