We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7f9873d + abe03a2 commit df23473Copy full SHA for df23473
1 file changed
src/client.js
@@ -36,10 +36,10 @@ module.exports = class FortniteAPI {
36
for (var prop in query) {
37
if (Array.isArray(query[prop])) {
38
for (var item of query[prop]) {
39
- params += prop + "=" + item + "&";
+ params += prop + "=" + encodeURI(item) + "&";
40
}
41
} else {
42
- params += prop + "=" + query[prop] + "&";
+ params += prop + "=" + encodeURI(query[prop]) + "&";
43
44
45
if (params.length > 0) {
@@ -338,4 +338,4 @@ module.exports = class FortniteAPI {
338
const data = await result.json();
339
return data;
340
};
341
-};
+};
0 commit comments