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.
- package/package.json +1 -1
- package/src/api.ts +4 -1
package/package.json
CHANGED
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(
|
|
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;
|