mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-04-07 14:04:35 +08:00
[refactor] Change status 403->410 when link has expired
This commit is contained in:
committed by
Sergey Konovalov
parent
41d3ac8245
commit
6247702d6b
@ -76,7 +76,7 @@ function initCacheRouter(cfgStorage, routs) {
|
||||
|
||||
const currentTime = Math.floor(Date.now() / 1000);
|
||||
if (currentTime > expires) {
|
||||
res.sendStatus(403);
|
||||
res.sendStatus(410);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user