From c0ce84ed42bee3dcdb8efd51044de06db24fc6a4 Mon Sep 17 00:00:00 2001 From: Niraj Nandish Date: Thu, 18 May 2023 13:32:38 +0400 Subject: [PATCH] feat: decode assets url when loading them --- lib/src/in_app_localhost_server.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/in_app_localhost_server.dart b/lib/src/in_app_localhost_server.dart index 96b4fdab..8e20961d 100755 --- a/lib/src/in_app_localhost_server.dart +++ b/lib/src/in_app_localhost_server.dart @@ -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();