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

Unified Diff: pkg/http_multi_server/lib/src/multi_headers.dart

Issue 477513002: Fix analyzer warnings in http_multi_server. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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_multi_server/CHANGELOG.md ('k') | pkg/http_multi_server/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http_multi_server/lib/src/multi_headers.dart
diff --git a/pkg/http_multi_server/lib/src/multi_headers.dart b/pkg/http_multi_server/lib/src/multi_headers.dart
index 1677a9fa8cb806da979226b2773820f238f43f29..fcd782cfce699e3eb76bc0d4b7a78b2aa945ef98 100644
--- a/pkg/http_multi_server/lib/src/multi_headers.dart
+++ b/pkg/http_multi_server/lib/src/multi_headers.dart
@@ -95,13 +95,13 @@ class MultiHeaders implements HttpHeaders {
void remove(String name, Object value) {
for (var headers in _headers) {
- headers.remove(name);
+ headers.remove(name, value);
}
}
void removeAll(String name) {
for (var headers in _headers) {
- headers.removeAll(name, value);
+ headers.removeAll(name);
}
}
@@ -114,4 +114,10 @@ class MultiHeaders implements HttpHeaders {
String value(String name) => _headers.first.value(name);
List<String> operator[](String name) => _headers.first[name];
+
+ void clear() {
+ for (var headers in _headers) {
+ headers.clear();
+ }
+ }
}
« no previous file with comments | « pkg/http_multi_server/CHANGELOG.md ('k') | pkg/http_multi_server/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698