Commit 65f2d106 authored by Lorenzo Pichilli's avatar Lorenzo Pichilli Committed by GitHub

Update in_app_localhost_server.dart

parent f89610ae
......@@ -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 {
}
}
}
\ No newline at end of file
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment