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

Unified Diff: test/test_pub.dart

Issue 1295803003: Upgrade to shelf 0.6.0. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 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 | « test/serve/404_page_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/test_pub.dart
diff --git a/test/test_pub.dart b/test/test_pub.dart
index 25b217b31091a7e4a6e641cfc61d5143e67c19c2..2c7af92411fa42e0a4b25171fb556c686c662b28 100644
--- a/test/test_pub.dart
+++ b/test/test_pub.dart
@@ -201,7 +201,7 @@ void serve([List<d.Descriptor> contents]) {
schedule(() {
return _closeServer().then((_) {
return shelf_io.serve((request) {
- var path = p.posix.fromUri(request.url.path.replaceFirst("/", ""));
+ var path = p.posix.fromUri(request.url.path);
_requestedPaths.add(path);
return validateStream(baseDir.load(path))
« no previous file with comments | « test/serve/404_page_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698