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

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

Issue 13872007: Refactor removeRange. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebuild dom. Created 7 years, 8 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
Index: sdk/lib/io/http_headers.dart
diff --git a/sdk/lib/io/http_headers.dart b/sdk/lib/io/http_headers.dart
index 261f1cd124ebeeb849b6e8645d670b00e3b29f9a..101bbc24f54d66294bd8d317adddd620f4fc67ce 100644
--- a/sdk/lib/io/http_headers.dart
+++ b/sdk/lib/io/http_headers.dart
@@ -48,7 +48,7 @@ class _HttpHeaders implements HttpHeaders {
if (values != null) {
int index = values.indexOf(value);
if (index != -1) {
- values.removeRange(index, 1);
+ values.removeRange(index, index + 1);
}
if (values.length == 0) _headers.remove(name);
}

Powered by Google App Engine
This is Rietveld 408576698