summaryrefslogtreecommitdiff
path: root/http.ts
diff options
context:
space:
mode:
Diffstat (limited to 'http.ts')
-rw-r--r--http.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/http.ts b/http.ts
index 508d1ecaa..b11e2b369 100644
--- a/http.ts
+++ b/http.ts
@@ -82,7 +82,7 @@ export async function* serve(addr: string) {
listener.close();
}
-export async function listenAndServe(addr: string, handler: (ServerRequest) => void) {
+export async function listenAndServe(addr: string, handler: (req: ServerRequest) => void) {
const server = serve(addr);
for await (const request of server) {