spooder 5.1.9 → 5.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/api.ts +4 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "spooder",
3
3
  "type": "module",
4
- "version": "5.1.9",
4
+ "version": "5.1.10",
5
5
  "module": "./src/api.ts",
6
6
  "bin": {
7
7
  "spooder": "./src/cli.ts"
package/src/api.ts CHANGED
@@ -820,7 +820,10 @@ export function http_apply_range(file: BunFile, request: Request): BunFile {
820
820
  if (start_is_nan && end_is_nan)
821
821
  return file;
822
822
 
823
- file = file.slice(start_is_nan ? file.size - end : start, end_is_nan || start_is_nan ? undefined : end);
823
+ file = file.slice(
824
+ start_is_nan ? file.size - end : start,
825
+ end_is_nan || start_is_nan ? undefined : end + 1
826
+ );
824
827
  }
825
828
  }
826
829
  return file;