aboutsummaryrefslogtreecommitdiff
path: root/examples/http-file-extended.ts
diff options
context:
space:
mode:
Diffstat (limited to 'examples/http-file-extended.ts')
-rw-r--r--examples/http-file-extended.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/http-file-extended.ts b/examples/http-file-extended.ts
index 7ae515f14..14886af5e 100644
--- a/examples/http-file-extended.ts
+++ b/examples/http-file-extended.ts
@@ -29,7 +29,7 @@ serve({
if (req.headers.has("range")) {
opts.code = 206;
- let [x, y] = req.headers.get("range").replace("bytes=", "").split("-");
+ let [x, y] = req.headers.get("range")!.replace("bytes=", "").split("-");
let end = (opts.end = parseInt(y, 10) || stats.size - 1);
let start = (opts.start = parseInt(x, 10) || 0);