diff --git a/src/core/AnonymizedFile.ts b/src/core/AnonymizedFile.ts index 4de0861..01c4b19 100644 --- a/src/core/AnonymizedFile.ts +++ b/src/core/AnonymizedFile.ts @@ -271,7 +271,16 @@ export default class AnonymizedFile { } else if (isTextFile(this.anonymizedPath)) { res.contentType("text/plain"); } - res.header("Accept-Ranges", "none"); + // For text files we anonymize on the fly and the output length can + // differ from the upstream, so byte ranges aren't meaningful — keep + // Accept-Ranges: none. For binary files (images, video, archives) + // the transformer is a passthrough, so omitting the explicit "none" + // lets