summaryrefslogtreecommitdiff
path: root/std/http/file_server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/http/file_server.ts')
-rwxr-xr-xstd/http/file_server.ts2
1 files changed, 0 insertions, 2 deletions
diff --git a/std/http/file_server.ts b/std/http/file_server.ts
index d847642d9..cc92e0d47 100755
--- a/std/http/file_server.ts
+++ b/std/http/file_server.ts
@@ -11,7 +11,6 @@ import { posix, extname } from "../path/mod.ts";
import { listenAndServe, ServerRequest, Response } from "./server.ts";
import { parse } from "../flags/mod.ts";
import { assert } from "../testing/asserts.ts";
-import { setContentLength } from "./io.ts";
interface EntryInfo {
mode: string;
@@ -173,7 +172,6 @@ async function serveDir(
body: page,
headers,
};
- setContentLength(res);
return res;
}