Update in_app_localhost_server.dart

This commit is contained in:
Lorenzo Pichilli 2019-11-11 10:01:47 +01:00 committed by GitHub
parent f89610ae29
commit 65f2d1061d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ class InAppLocalhostServer {
var body = List<int>();
var path = request.requestedUri.path;
path = (path.startsWith('/')) ? path.substring(1) : path;
path += (path.endsWith('/')) ? 't-rex.html' : '';
path += (path.endsWith('/')) ? 'index.html' : '';
try {
body = (await rootBundle.load(path))
@ -85,4 +85,4 @@ class InAppLocalhostServer {
}
}
}
}