Revert "v2.39.0 (#2180)"

This reverts commit 1e228c86c3.
This commit is contained in:
Raktima
2026-05-25 17:24:36 +05:30
committed by GitHub
parent 1e228c86c3
commit 7b4d0bf052
92 changed files with 5372 additions and 8680 deletions
+1 -1
View File
@@ -190,7 +190,7 @@ function getUserIP(request) {
}
app.use(async function (req, res, next) {
const isFilePath = req.path?.includes('/files/') || false;
const isFilePath = req.path.includes('files') || false;
if (isFilePath && req.method.toLowerCase() === 'get') {
const serverUrl = new URL(process.env.SERVER_URL);
const origin = serverUrl.pathname === '/api/app' ? serverUrl.origin + '/api' : serverUrl.origin;