fix(std/http): Catch errors on file_server response.send (#6285)

This commit is contained in:
Jim van der Voort 2020-06-27 13:49:07 +02:00 committed by GitHub
parent d77a55a973
commit 6f3ad0f73a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -353,7 +353,11 @@ function main(): void {
setCORS(response);
}
serverLog(req, response!);
req.respond(response!);
try {
await req.respond(response!);
} catch (e) {
console.error(e.message);
}
}
}
);