| Index: samples/leap/leap_server.dart
|
| diff --git a/samples/leap/leap_server.dart b/samples/leap/leap_server.dart
|
| index 1812491aa64388bdad121b1cef78eee3875d2586..c2c419308a0a501c772e54fe190d4ff5a886768b 100644
|
| --- a/samples/leap/leap_server.dart
|
| +++ b/samples/leap/leap_server.dart
|
| @@ -43,7 +43,7 @@ class Conversation {
|
| }
|
| if (path.contains('..') || path.contains('%')) return notFound();
|
| var f = new File("./$path");
|
| - f.exists((bool exists) {
|
| + f.exists().then((bool exists) {
|
| if (!exists) return notFound();
|
| if (path.endsWith('.dart')) {
|
| response.headers.add(HttpHeaders.CONTENT_TYPE, "application/dart");
|
|
|