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

Unified Diff: pkg/shelf/lib/src/request.dart

Issue 219113004: pkg/shelf: fix for UnmodifiableMapView collision in bleeding edge dart:collection (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/shelf/lib/src/request.dart
diff --git a/pkg/shelf/lib/src/request.dart b/pkg/shelf/lib/src/request.dart
index 731a8ea6b4034fe27a6389b471c4b92322885073..ed9fdd781b7759f0cabfbbea6db49d6206d5ac47 100644
--- a/pkg/shelf/lib/src/request.dart
+++ b/pkg/shelf/lib/src/request.dart
@@ -7,7 +7,8 @@ library shelf.request;
import 'dart:async';
import 'dart:collection';
-import 'package:collection/wrappers.dart';
+// TODO(kevmoo): use UnmodifiableMapView from SDK once 1.4 ships
+import 'package:collection/wrappers.dart' as pc;
import 'package:path/path.dart' as p;
import 'message.dart';
@@ -69,7 +70,7 @@ class Request extends Message {
this.scriptName, this.protocolVersion, this.requestedUri,
Map<String, String> headers, {Stream<List<int>> body})
: this.queryString = queryString == null ? '' : queryString,
- super(new UnmodifiableMapView(new HashMap.from(headers)),
+ super(new pc.UnmodifiableMapView(new HashMap.from(headers)),
body == null ? new Stream.fromIterable([]) : body) {
if (method.isEmpty) throw new ArgumentError('method cannot be empty.');
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698