Skip to content

Commit f7a2ede

Browse files
authored
Merge pull request #1009 from fzyzcjy/patch-1
2 parents 698ed07 + 79a07f6 commit f7a2ede

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/resources/handlebars/dart/api_client.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class ApiClient {
105105
106106
_updateParamsForAuth(authNames, queryParams, headerParams);
107107
108-
var ps = queryParams.where((p) => p.value != null).map((p) => '${p.name}=${p.value}');
108+
var ps = queryParams.where((p) => p.value != null).map((p) => '${Uri.encodeComponent(p.name)}=${Uri.encodeComponent(p.value)}');
109109
String queryString = ps.isNotEmpty ?
110110
'?' + ps.join('&') :
111111
'';

0 commit comments

Comments
 (0)