@@ -6,7 +6,6 @@ import 'dart:async';
66
77import 'package:http/http.dart' as http;
88import 'package:http/src/boundary_characters.dart' ;
9- import 'package:http_parser/http_parser.dart' ;
109import 'package:test/test.dart' ;
1110
1211import 'utils.dart' ;
@@ -21,7 +20,8 @@ void main() {
2120
2221 test ('boundary characters' , () {
2322 var testBoundary = String .fromCharCodes (boundaryCharacters);
24- var contentType = MediaType .parse ('text/plain; boundary=$testBoundary ' );
23+ var contentType =
24+ http.MediaType .parse ('text/plain; boundary=$testBoundary ' );
2525 var boundary = contentType.parameters['boundary' ];
2626 expect (boundary, testBoundary);
2727 });
@@ -159,7 +159,7 @@ void main() {
159159 test ('with a string file with a content-type but no charset' , () {
160160 var request = http.MultipartRequest ('POST' , dummyUrl);
161161 var file = http.MultipartFile .fromString ('file' , '{"hello": "world"}' ,
162- contentType: MediaType ('application' , 'json' ));
162+ contentType: http. MediaType ('application' , 'json' ));
163163 request.files.add (file);
164164
165165 expect (request, bodyMatches ('''
@@ -175,8 +175,11 @@ void main() {
175175 test ('with a file with a iso-8859-1 body' , () {
176176 var request = http.MultipartRequest ('POST' , dummyUrl);
177177 // "Ã¥" encoded as ISO-8859-1 and then read as UTF-8 results in "å".
178- var file = http.MultipartFile .fromString ('file' , 'non-ascii: "Ã¥"' ,
179- contentType: MediaType ('text' , 'plain' , {'charset' : 'iso-8859-1' }));
178+ var file = http.MultipartFile .fromString (
179+ 'file' ,
180+ 'non-ascii: "Ã¥"' ,
181+ contentType: http.MediaType ('text' , 'plain' , {'charset' : 'iso-8859-1' }),
182+ );
180183 request.files.add (file);
181184
182185 expect (request, bodyMatches ('''
0 commit comments