File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,9 @@ class {{ spec.title | caseUcfirst }} {
8686 }
8787
8888 if (method === 'GET') {
89- url.search = new URLSearchParams(this.flatten(params)).toString();
89+ for (const [key, value] of Object.entries(this.flatten(params))) {
90+ url.searchParams.append(key, value);
91+ }
9092 } else {
9193 switch (headers['content-type']) {
9294 case 'application/json':
@@ -210,8 +212,9 @@ class {{ spec.title | caseUcfirst }} {
210212{% endfor %}
211213{% endif %}
212214
213- const query = new URLSearchParams(this.flatten(payload));
214- uri.search = query.toString();
215+ for (const [key, value] of Object.entries(this.flatten(payload))) {
216+ uri.searchParams.append(key, value);
217+ }
215218{% endif %}
216219{% if method .type == ' webAuth' %}
217220 if (typeof window !== 'undefined' && window?.location) {
You can’t perform that action at this time.
0 commit comments