Remove filesCollection from FileStoreStrategy classes

This commit is contained in:
Martin Filser 2022-04-07 23:06:16 +02:00
parent e75f423edd
commit 9d587e76ab
5 changed files with 26 additions and 29 deletions

View file

@ -13,7 +13,9 @@ export const httpStreamOutput = function(readStream, name, http, downloadFlag, c
http.response.end('not found');
});
http.response.setHeader('Cache-Control', cacheControl);
if (cacheControl) {
http.response.setHeader('Cache-Control', cacheControl);
}
http.response.setHeader('Content-Disposition', getContentDisposition(name, http?.params?.query?.download));
};