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

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

Issue 14914002: Change fromString constructor to parse static method (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed additional tests Created 7 years, 7 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/request.dart ('k') | pkg/http/test/multipart_test.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 c036fe91b8b0d44f689575e13fd8b83fb1b65ad5..b7e0a481da810db6a4884f9e974a727fb5b0a41e 100644
--- a/pkg/http/lib/src/response.dart
+++ b/pkg/http/lib/src/response.dart
@@ -89,6 +89,6 @@ Encoding _encodingForHeaders(Map<String, String> headers) =>
/// `application/octet-stream`.
ContentType _contentTypeForHeaders(Map<String, String> headers) {
var contentType = headers[HttpHeaders.CONTENT_TYPE];
- if (contentType != null) return new ContentType.fromString(contentType);
+ if (contentType != null) return ContentType.parse(contentType);
return new ContentType("application", "octet-stream");
}
« no previous file with comments | « pkg/http/lib/src/request.dart ('k') | pkg/http/test/multipart_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698