aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/api/server.zig
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-12-04 01:24:52 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-12-04 01:24:52 -0800
commit4281a68a2bb90f3196366b3ea818e81466d759df (patch)
tree1b427d45ba5f3a503c5d78f5ed86ff76957d8409 /src/bun.js/api/server.zig
parentab020b2275b26cd83f13ed327bd0401ad2176fa9 (diff)
downloadbun-4281a68a2bb90f3196366b3ea818e81466d759df.tar.gz
bun-4281a68a2bb90f3196366b3ea818e81466d759df.tar.zst
bun-4281a68a2bb90f3196366b3ea818e81466d759df.zip
content-range is inclusive
Diffstat (limited to 'src/bun.js/api/server.zig')
-rw-r--r--src/bun.js/api/server.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.js/api/server.zig b/src/bun.js/api/server.zig
index 9f3256c97..f9ca6e881 100644
--- a/src/bun.js/api/server.zig
+++ b/src/bun.js/api/server.zig
@@ -2235,7 +2235,7 @@ fn NewRequestContext(comptime ssl_enabled: bool, comptime debug_mode: bool, comp
// change between requests and this potentially leaks
// PII undesirably
"bytes {d}-{d}/*",
- .{ this.sendfile.offset, this.sendfile.offset + this.sendfile.remain },
+ .{ this.sendfile.offset, this.sendfile.offset + (this.sendfile.remain -| 1) },
) catch "bytes */*",
);
this.needs_content_range = false;