Update in_app_localhost_server.dart
This commit is contained in:
parent
f89610ae29
commit
65f2d1061d
|
@ -45,7 +45,7 @@ class InAppLocalhostServer {
|
||||||
var body = List<int>();
|
var body = List<int>();
|
||||||
var path = request.requestedUri.path;
|
var path = request.requestedUri.path;
|
||||||
path = (path.startsWith('/')) ? path.substring(1) : path;
|
path = (path.startsWith('/')) ? path.substring(1) : path;
|
||||||
path += (path.endsWith('/')) ? 't-rex.html' : '';
|
path += (path.endsWith('/')) ? 'index.html' : '';
|
||||||
|
|
||||||
try {
|
try {
|
||||||
body = (await rootBundle.load(path))
|
body = (await rootBundle.load(path))
|
||||||
|
@ -85,4 +85,4 @@ class InAppLocalhostServer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue