Skip to content

Commit abe03a2

Browse files
authored
1 parent 4f06ecc commit abe03a2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/client.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ module.exports = class FortniteAPI {
3636
for (var prop in query) {
3737
if (Array.isArray(query[prop])) {
3838
for (var item of query[prop]) {
39-
params += prop + "=" + item + "&";
39+
params += prop + "=" + encodeURI(item) + "&";
4040
}
4141
} else {
42-
params += prop + "=" + query[prop] + "&";
42+
params += prop + "=" + encodeURI(query[prop]) + "&";
4343
}
4444
}
4545
if (params.length > 0) {
@@ -304,4 +304,4 @@ module.exports = class FortniteAPI {
304304
const data = await result.json();
305305
return data;
306306
};
307-
};
307+
};

0 commit comments

Comments
 (0)