Skip to content

Commit 5c1bfe2

Browse files
authored
add missing content-type (#87)
1 parent 55f2597 commit 5c1bfe2

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

base/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.6.3
2+
3+
- 补充遗漏的 Content-Type
4+
15
## 0.6.2
26

37
- 移除冗余的 uuid 依赖声明

base/lib/src/storage/methods/put/by_part/init_parts_task.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ class InitPartsTask extends RequestTask<InitParts> with CacheMixin<InitParts> {
8585
data: <String, dynamic>{},
8686
options: Options(
8787
headers: headers,
88+
contentType: Headers.textPlainContentType,
8889
),
8990
);
9091

base/lib/src/storage/methods/put/by_part/upload_part_task.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ class UploadPartTask extends RequestTask<UploadPart> {
6464
cancelToken: controller?.cancelToken,
6565
options: Options(
6666
headers: headers,
67+
contentType: 'application/octet-stream',
6768
),
6869
);
6970

base/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: qiniu_sdk_base
2-
version: 0.6.2
2+
version: 0.6.3
33
homepage: https://github.com/qiniu/dart-sdk
44
description: The sdk basic of Qiniu products
55

0 commit comments

Comments
 (0)