File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,9 @@ class {{ spec.title | caseUcfirst }} {
8686 }
8787
8888 if (method === 'GET') {
89+ for (const [key, value] of Object.entries(this.flatten(params))) {
90+ url.searchParams.append(key, value);
91+ }
8992 url.search = new URLSearchParams(this.flatten(params)).toString();
9093 } else {
9194 switch (headers['content-type']) {
@@ -210,8 +213,9 @@ class {{ spec.title | caseUcfirst }} {
210213{% endfor %}
211214{% endif %}
212215
213- const query = new URLSearchParams(this.flatten(payload));
214- uri.search = query.toString();
216+ for (const [key, value] of Object.entries(this.flatten(payload))) {
217+ uri.searchParams.append(key, value);
218+ }
215219{% endif %}
216220{% if method .type == ' webAuth' %}
217221 if (typeof window !== 'undefined' && window?.location) {
You can’t perform that action at this time.
0 commit comments