Skip to content

Commit 4649273

Browse files
fzyzcjyranitham
authored andcommitted
Update api_client.mustache
1 parent 00b922f commit 4649273

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/swagger-codegen/src/main/resources/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)