Index: pkg/http/lib/src/multipart_request.dart |
diff --git a/pkg/http/lib/src/multipart_request.dart b/pkg/http/lib/src/multipart_request.dart |
index a66db0f17d82abd8987401281791cd133d3686c7..0855063b1fa9eb7bc66f3a453392bd919263ab7b 100644 |
--- a/pkg/http/lib/src/multipart_request.dart |
+++ b/pkg/http/lib/src/multipart_request.dart |
@@ -165,7 +165,7 @@ class MultipartRequest extends BaseRequest { |
/// [length]. |
String _boundaryString(int length) { |
var prefix = "dart-http-boundary-"; |
- var list = new List<int>.fixedLength(length - prefix.length); |
+ var list = new List<int>(length - prefix.length); |
for (var i = 0; i < list.length; i++) { |
list[i] = _BOUNDARY_CHARACTERS[ |
_random.nextInt(_BOUNDARY_CHARACTERS.length)]; |