Skip to content

Commit cad527f

Browse files
committed
fix cfug#372
1 parent 5028625 commit cad527f

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

package_src/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 2.1.13
2+
3+
- fix #369
4+
15
# 2.1.12
26

37
- fix #367 #365

package_src/lib/src/form_data.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class FormData extends MapMixin<String, dynamic> {
102102
writeMapLength(buf, key, value) {
103103
value.keys.toList().forEach((mapKey) {
104104
var nestedKey = '${key}[${mapKey}]';
105-
if (value[mapKey]) return;
105+
if (value[mapKey]==null) return;
106106
if (value[mapKey] is Map) {
107107
writeMapLength(buf, nestedKey, value[mapKey]);
108108
} else if (value[mapKey] is UploadFileInfo) {

package_src/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: dio
22
description: A powerful Http client for Dart, which supports Interceptors, FormData, Request Cancellation, File Downloading, Timeout etc.
3-
version: 2.1.12
3+
version: 2.1.13
44
homepage: https://github.com/flutterchina/dio
55
author: wendux <[email protected]>
66

0 commit comments

Comments
 (0)