mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-11-27 22:54:32 +01:00
change default filter for the admin
This commit is contained in:
1 parent
dde7fa2d72
commit
f1d6e4534d
2 files changed
+5
-4
No files matched your search
@@ -218,6 +218,7 @@ export default class AnonymizedFile {
|
||||
res.header("Accept-Ranges", "none");
|
||||
try {
|
||||
const fileInfo = await storage.fileInfo(this.originalCachePath);
|
||||
// the text files may be anonymized and therefore the size may be different
|
||||
if (!isTextFile(this.anonymizedPath) && fileInfo.size) {
|
||||
res.header("Content-Length", fileInfo.size.toString());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user