Skip to content

Commit f044519

Browse files
committed
fix test failing
1 parent 14335ea commit f044519

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

templates/flutter/lib/client.dart.twig

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,7 @@ class Client {
146146
try {
147147
if(headers['content-type'] == 'multipart/form-data') {
148148
res = await http.request(path, data: FormData.fromMap(params, ListFormat.multiCompatible), options: options);
149-
}
150-
151-
if (method == HttpMethod.get) {
149+
} else if (method == HttpMethod.get) {
152150
params.keys.forEach((key) {if (params[key] is int || params[key] is double) {
153151
params[key] = params[key].toString();
154152
}});

0 commit comments

Comments
 (0)