Skip to content

Commit 0778fd2

Browse files
author
duwen
committed
fix #163
1 parent 6c90727 commit 0778fd2

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

lib/src/dio.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class Dio {
4343
}
4444

4545
/// The Dio version.
46-
static const version = "0.0.4";
46+
static const version = "1.0.16";
4747

4848
/// Default Request config. More see [Options] .
4949
Options options;

lib/src/form_data.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,6 @@ class FormData extends MapMixin<String, dynamic> {
9494
});
9595
if (_map.length > 0 || fileMap.length > 0) {
9696
data.clear();
97-
if(fileMap.length>0) {
98-
_writeln(data);
99-
}
10097
data.write(boundary+"--");
10198
_writeln(data);
10299
//_writeln(data);
@@ -140,4 +137,4 @@ class FormData extends MapMixin<String, dynamic> {
140137
bytes.addAll(utf8.encode('\r\n'));
141138
data.clear();
142139
}
143-
}
140+
}

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: 1.0.15
3+
version: 1.0.16
44
homepage: https://github.com/flutterchina/dio
55
author: wendux <824783146@qq.com>
66

0 commit comments

Comments
 (0)