diff --git a/lib/request.js b/lib/request.js index 188e0b4f..349f86ba 100644 --- a/lib/request.js +++ b/lib/request.js @@ -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)