change query encoding to old style meta
This commit is contained in:
parent
52d4015114
commit
5677d70449
2 changed files with 4 additions and 5 deletions
4
app.js
4
app.js
|
|
@ -380,9 +380,9 @@ function string2obj(s) {
|
|||
function handleVersion(req, res, next) {
|
||||
if (req.app.path === "/kiri/" && req.url.indexOf(version) < 0) {
|
||||
if (req.url.indexOf("?") > 0) {
|
||||
return http.redirect(res, `${req.url}&ver=${version}`);
|
||||
return http.redirect(res, `${req.url},ver:${version}`);
|
||||
} else {
|
||||
return http.redirect(res, `${req.url}?ver=${version}`);
|
||||
return http.redirect(res, `${req.url}?ver:${version}`);
|
||||
}
|
||||
} else {
|
||||
next();
|
||||
|
|
|
|||
Loading…
Reference in a new issue