We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75a468d commit c045ae0Copy full SHA for c045ae0
mod.ts
@@ -16,9 +16,9 @@ const listen = async (options: Deno.ListenOptions): Promise<void> => {
16
const router = routers.get(new URL(requestEvent.request.url).pathname);
17
18
if (router) {
19
- requestEvent.respondWith(router(requestEvent.request));
+ await requestEvent.respondWith(router(requestEvent.request));
20
} else {
21
- requestEvent.respondWith(new Response('Not Found', { status: 404 }));
+ await requestEvent.respondWith(new Response('Not Found', { status: 404 }));
22
}
23
24
0 commit comments