Skip to content

Commit

Permalink
fix regression...
Browse files Browse the repository at this point in the history
  • Loading branch information
traines-source committed Dec 21, 2024
1 parent debc1ee commit 6538f81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6538f81

Please sign in to comment.