mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-07-05 21:27:59 +02:00
change default filter for the admin
This commit is contained in:
@@ -20,11 +20,11 @@ angular
|
|||||||
$scope.query = {
|
$scope.query = {
|
||||||
page: 1,
|
page: 1,
|
||||||
limit: 25,
|
limit: 25,
|
||||||
sort: "source.repositoryName",
|
sort: "lastView",
|
||||||
search: "",
|
search: "",
|
||||||
ready: true,
|
ready: false,
|
||||||
expired: true,
|
expired: false,
|
||||||
removed: true,
|
removed: false,
|
||||||
error: true,
|
error: true,
|
||||||
preparing: true,
|
preparing: true,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -218,6 +218,7 @@ export default class AnonymizedFile {
|
|||||||
res.header("Accept-Ranges", "none");
|
res.header("Accept-Ranges", "none");
|
||||||
try {
|
try {
|
||||||
const fileInfo = await storage.fileInfo(this.originalCachePath);
|
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) {
|
if (!isTextFile(this.anonymizedPath) && fileInfo.size) {
|
||||||
res.header("Content-Length", fileInfo.size.toString());
|
res.header("Content-Length", fileInfo.size.toString());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user