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

Unified Diff: test/test_util.dart

Issue 966063003: Overhaul the semantics of Request.handlerPath and Request.url. (Closed) Base URL: git@github.com:dart-lang/shelf@master
Patch Set: Code review changes Created 5 years, 10 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/shelf_io_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_util.dart
diff --git a/test/test_util.dart b/test/test_util.dart
index 193e3221a5f12adc3b79298dc667bd8fdffd0807..b6db278794935a6076ce6f63e97788dca7093a4b 100644
--- a/test/test_util.dart
+++ b/test/test_util.dart
@@ -23,7 +23,7 @@ Response syncHandler(Request request,
{int statusCode, Map<String, String> headers}) {
if (statusCode == null) statusCode = 200;
return new Response(statusCode,
- headers: headers, body: 'Hello from ${request.url.path}');
+ headers: headers, body: 'Hello from ${request.requestedUri.path}');
}
/// Calls [syncHandler] and wraps the response in a [Future].
« no previous file with comments | « test/shelf_io_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698