fix jszip for production

This commit is contained in:
Stewart Allen 2025-07-14 18:15:14 -04:00
commit 9674b50be0
10 changed files with 64 additions and 21 deletions

2
app.js
View file

@ -341,7 +341,7 @@ const redirList = [
function handleVersion(req, res, next) {
let vstr = oversion || dversion || version;
if (!req.app.ispre && !redirList.indexOf(req.app.path) >= 0 && req.url.indexOf(vstr) < 0) {
if (!req.app.ispre && redirList.indexOf(req.app.path) === 0 && req.url.indexOf(vstr) < 0) {
if (req.url.indexOf("?") > 0) {
return http.redirect(res, `${req.url},ver:${vstr}`);
} else {