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

Unified Diff: sdk/lib/io/http_impl.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | « sdk/lib/io/http_headers.dart ('k') | sdk/lib/io/http_parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/http_impl.dart
diff --git a/sdk/lib/io/http_impl.dart b/sdk/lib/io/http_impl.dart
index fb82ba23e31069cdc5d6cd722f7d83a5ddd0d0a3..841a614674acb88976deca0d2a23e3db31570748 100644
--- a/sdk/lib/io/http_impl.dart
+++ b/sdk/lib/io/http_impl.dart
@@ -94,11 +94,11 @@ class _HttpRequestResponseBase {
List<String> connection = headers[HttpHeaders.CONNECTION];
if (_protocolVersion == "1.1") {
if (connection == null) return true;
- return !headers[HttpHeaders.CONNECTION].some(
+ return !headers[HttpHeaders.CONNECTION].any(
(value) => value.toLowerCase() == "close");
} else {
if (connection == null) return false;
- return headers[HttpHeaders.CONNECTION].some(
+ return headers[HttpHeaders.CONNECTION].any(
(value) => value.toLowerCase() == "keep-alive");
}
}
@@ -1269,9 +1269,9 @@ class _HttpClientRequest
bool _emptyBody = true;
}
-
class _HttpClientResponse
- extends _HttpRequestResponseBase implements HttpClientResponse {
+ extends _HttpRequestResponseBase
+ implements HttpClientResponse {
_HttpClientResponse(_HttpClientConnection connection)
: super(connection) {
_connection = connection;
« no previous file with comments | « sdk/lib/io/http_headers.dart ('k') | sdk/lib/io/http_parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698