feat: decode assets url when loading them
This commit is contained in:
parent
b6725128a8
commit
c0ce84ed42
|
@ -86,7 +86,7 @@ class InAppLocalhostServer {
|
||||||
path = _documentRoot + path;
|
path = _documentRoot + path;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
body = (await rootBundle.load(path)).buffer.asUint8List();
|
body = (await rootBundle.load(Uri.decodeFull(path))).buffer.asUint8List();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
print(e.toString());
|
print(e.toString());
|
||||||
request.response.close();
|
request.response.close();
|
||||||
|
|
Loading…
Reference in New Issue