mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-04-07 14:04:35 +08:00
[bug] Fix unhandled exception in cache response. Fix bug 63433
This commit is contained in:
@ -129,7 +129,7 @@ if (configStorage.has('fs.folderPath')) {
|
||||
const cfgStorageFolderName = configStorage.get('storageFolderName');
|
||||
app.use('/' + cfgBucketName + '/' + cfgStorageFolderName, (req, res, next) => {
|
||||
const index = req.url.lastIndexOf('/');
|
||||
if ('GET' === req.method && -1 != index) {
|
||||
if ('GET' === req.method && index > 0) {
|
||||
let sendFileOptions = {
|
||||
root: configStorage.get('fs.folderPath'), dotfiles: 'deny', headers: {
|
||||
'Content-Disposition': 'attachment'
|
||||
@ -148,7 +148,7 @@ if (configStorage.has('fs.folderPath')) {
|
||||
}
|
||||
});
|
||||
} else {
|
||||
res.sendStatus(404)
|
||||
res.sendStatus(404);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user