feat: decode assets url when loading them

This commit is contained in:
Niraj Nandish 2023-05-18 13:32:38 +04:00
parent b6725128a8
commit c0ce84ed42
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ class InAppLocalhostServer {
path = _documentRoot + path;
try {
body = (await rootBundle.load(path)).buffer.asUint8List();
body = (await rootBundle.load(Uri.decodeFull(path))).buffer.asUint8List();
} catch (e) {
print(e.toString());
request.response.close();