Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(265)

Unified Diff: pkg/http/lib/src/response.dart

Issue 196423017: Make BaseRequest.contentType use null rather than -1 as a flag value. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/http/lib/src/mock_client.dart ('k') | pkg/http/lib/src/streamed_response.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « pkg/http/lib/src/mock_client.dart ('k') | pkg/http/lib/src/streamed_response.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698