replace return with continue

This commit is contained in:
HorizonCode 2023-05-12 15:05:06 +02:00
parent 7f1fce92b2
commit 1376fbdeba

3
mod.ts
View File

@ -175,7 +175,7 @@ export class HTTPServer {
resolveAction(hrArray); resolveAction(hrArray);
} }
await requestEvent.respondWith(response); await requestEvent.respondWith(response);
return; continue;
} }
const routeName = `${requestEvent.request.method}@${filepath}`; const routeName = `${requestEvent.request.method}@${filepath}`;
@ -252,6 +252,7 @@ export class HTTPServer {
this.handleNotFound(routeRequest, routeReply, requestEvent); this.handleNotFound(routeRequest, routeReply, requestEvent);
} }
} catch (_err) { } catch (_err) {
console.log(_err);
// Ignore http connections that where closed before reply was sent // Ignore http connections that where closed before reply was sent
} }
} }