Skip to content

Commit eb11c61

Browse files
committed
Remove an extra \r\n and fix a test.
The multipart tests hadn't been updated to expect the content-transfer-encoding header. Closes #40 [email protected] Review URL: https://codereview.chromium.org//2152793003 .
1 parent 5c2f79f commit eb11c61

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
## 0.11.4-dev
1+
## 0.11.3+9
22

3-
* Fix an error in multipart_test.
3+
* Remove an extra newline in multipart chunks.
44

55
## 0.11.3+8
66

lib/src/multipart_request.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class MultipartRequest extends BaseRequest {
135135
if (!isPlainAscii(value)) {
136136
header = '$header\r\n'
137137
'content-type: text/plain; charset=utf-8\r\n'
138-
'content-transfer-encoding: binary\r\n';
138+
'content-transfer-encoding: binary';
139139
}
140140
return '$header\r\n\r\n';
141141
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: http
2-
version: 0.11.4-dev
2+
version: 0.11.3+9
33
author: "Dart Team <[email protected]>"
44
homepage: https://github.com/dart-lang/http
55
description: A composable, Future-based API for making HTTP requests.

test/multipart_test.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ void main() {
9898
content-type: text/plain; charset=utf-8
9999
content-transfer-encoding: binary
100100
101-
102101
vⱥlūe
103102
--{{boundary}}--
104103
'''));

0 commit comments

Comments
 (0)