mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
url query formatting fix, removed trailing ? round 2
This commit is contained in:
@@ -160,15 +160,15 @@ function GetApp(): ModuleType {
|
||||
},
|
||||
{
|
||||
from: '/allqr',
|
||||
to: 'http://api.frylabs.net/allqr.txt',
|
||||
to: 'https://api.frylabs.net/allqr.txt',
|
||||
},
|
||||
{
|
||||
from: '/allqr.txt',
|
||||
to: 'http://api.frylabs.net/allqr.txt',
|
||||
to: 'https://api.frylabs.net/allqr.txt',
|
||||
},
|
||||
{
|
||||
from: '/infos',
|
||||
to: 'http://api.frylabs.net/infos?version=true&motd=true&subjinfo=true',
|
||||
to: 'https://api.frylabs.net/infos?version=true&motd=true&subjinfo=true',
|
||||
nolog: true,
|
||||
},
|
||||
{
|
||||
@@ -185,7 +185,7 @@ function GetApp(): ModuleType {
|
||||
logger.DebugLog(`Qmining module ${redirect.from} redirect`, 'infos', 1)
|
||||
|
||||
let target = redirect.to
|
||||
if (!redirect.to.includes('?')) {
|
||||
if (!redirect.to.includes('https://')) {
|
||||
target += utils.formatUrl({ query: req.query })
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user