From c0ce84ed42bee3dcdb8efd51044de06db24fc6a4 Mon Sep 17 00:00:00 2001 From: Niraj Nandish Date: Thu, 18 May 2023 13:32:38 +0400 Subject: [PATCH 1/2] 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(); From cabe5e99af7d2d891facd3f08fdece14056de394 Mon Sep 17 00:00:00 2001 From: Niraj Nandish Date: Thu, 18 May 2023 13:33:00 +0400 Subject: [PATCH 2/2] chore: update example --- example/assets/index.html | 2 +- example/assets/{page-1.html => page 1.html} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename example/assets/{page-1.html => page 1.html} (100%) diff --git a/example/assets/index.html b/example/assets/index.html index 276ed0e1..87c30291 100755 --- a/example/assets/index.html +++ b/example/assets/index.html @@ -17,7 +17,7 @@

Flutter InAppWebView

diff --git a/example/assets/page-1.html b/example/assets/page 1.html similarity index 100% rename from example/assets/page-1.html rename to example/assets/page 1.html