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

Unified Diff: pkg/scheduled_test/lib/scheduled_server.dart

Issue 227563010: pkg/shelf: case-insensitive headers, cleaner Request ctor, a lot more tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fixing dependent code, changelog Created 6 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
« no previous file with comments | « no previous file | pkg/scheduled_test/lib/scheduled_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/scheduled_test/lib/scheduled_server.dart
diff --git a/pkg/scheduled_test/lib/scheduled_server.dart b/pkg/scheduled_test/lib/scheduled_server.dart
index a7a68bb9dc44748b80915213666257a3cad718a1..e04817af771efc4ad2baa5719dfa776bb865d19c 100644
--- a/pkg/scheduled_test/lib/scheduled_server.dart
+++ b/pkg/scheduled_test/lib/scheduled_server.dart
@@ -88,11 +88,11 @@ class ScheduledServer {
Future<shelf.Response> _handleRequest(shelf.Request request) {
return wrapFuture(syncFuture(() {
if (_handlers.isEmpty) {
- fail("'$description' received ${request.method} ${request.pathInfo} "
+ fail("'$description' received ${request.method} ${request.url.path} "
"when no more requests were expected.");
}
return _handlers.removeFirst().fn(request);
- }), 'receiving ${request.method} ${request.pathInfo}').catchError((error) {
+ }), 'receiving ${request.method} ${request.url.path}').catchError((error) {
// Don't let errors bubble up to the shelf handler. It will print them to
// stderr, but the user will already be notified via the scheduled_test
// infrastructure.
« no previous file with comments | « no previous file | pkg/scheduled_test/lib/scheduled_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698