summaryrefslogtreecommitdiff
path: root/std/http/io.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/http/io.ts')
-rw-r--r--std/http/io.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/std/http/io.ts b/std/http/io.ts
index 5518146a8..6d5d1f665 100644
--- a/std/http/io.ts
+++ b/std/http/io.ts
@@ -7,8 +7,8 @@ import { STATUS_TEXT } from "./http_status.ts";
export function emptyReader(): Deno.Reader {
return {
- async read(_: Uint8Array): Promise<number | Deno.EOF> {
- return Deno.EOF;
+ read(_: Uint8Array): Promise<number | Deno.EOF> {
+ return Promise.resolve(Deno.EOF);
}
};
}