mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-22 22:59:35 +02:00
fix regression...
This commit is contained in:
parent
debc1ee150
commit
6538f814aa
1 changed files with 2 additions and 2 deletions
|
@ -121,8 +121,8 @@ const request = async (ctx, userAgent, reqData) => {
|
|||
query: reqData.query,
|
||||
});
|
||||
|
||||
const url = endpoint + (reqData.path || '');
|
||||
if (query) {
|
||||
let url = endpoint + (reqData.path || '');
|
||||
if (req.query) {
|
||||
url += '?' + stringify(req.query, {arrayFormat: 'brackets', encodeValuesOnly: true});
|
||||
}
|
||||
const reqId = randomBytes(3)
|
||||
|
|
Loading…
Add table
Reference in a new issue