Index: pkg/http/lib/src/response.dart |
diff --git a/pkg/http/lib/src/response.dart b/pkg/http/lib/src/response.dart |
index 435027d7e83ffb19c6f45213785ccb7e096890ba..afbb7141f67a7b7a0fe1f155c48f05db1bd3d8a6 100644 |
--- a/pkg/http/lib/src/response.dart |
+++ b/pkg/http/lib/src/response.dart |
@@ -57,7 +57,7 @@ class Response extends BaseResponse { |
: bodyBytes = toUint8List(bodyBytes), |
super( |
statusCode, |
- bodyBytes.length, |
+ contentLength: bodyBytes.length, |
request: request, |
headers: headers, |
isRedirect: isRedirect, |