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

Unified Diff: lib/src/oauth2.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 | « lib/src/barback/barback_server.dart ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/oauth2.dart
diff --git a/lib/src/oauth2.dart b/lib/src/oauth2.dart
index d9f068f608f4d6bdf398764c0404ebbca287bda8..3933a43f1bb0691afb8a28b3f6e3568195d9e0e4 100644
--- a/lib/src/oauth2.dart
+++ b/lib/src/oauth2.dart
@@ -183,7 +183,7 @@ Future<Client> _authorize() {
var completer = new Completer();
bindServer('localhost', 0).then((server) {
shelf_io.serveRequests(server, (request) {
- if (request.url.path != "/") {
+ if (request.url.path.isNotEmpty) {
return new shelf.Response.notFound('Invalid URI.');
}
« no previous file with comments | « lib/src/barback/barback_server.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698