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:
parent
98b17e5b22
commit
10b9539eb9
1 changed files with 4 additions and 4 deletions
|
@ -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 })
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue