Skip to content

Commit c045ae0

Browse files
authored
Update mod.ts
1 parent 75a468d commit c045ae0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mod.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ const listen = async (options: Deno.ListenOptions): Promise<void> => {
1616
const router = routers.get(new URL(requestEvent.request.url).pathname);
1717

1818
if (router) {
19-
requestEvent.respondWith(router(requestEvent.request));
19+
await requestEvent.respondWith(router(requestEvent.request));
2020
} else {
21-
requestEvent.respondWith(new Response('Not Found', { status: 404 }));
21+
await requestEvent.respondWith(new Response('Not Found', { status: 404 }));
2222
}
2323
}
2424
}

0 commit comments

Comments
 (0)