Merge pull request #1657 from Nirajn2311/fix/decode-asset-url
feat: InAppLocalhostServer decode assets url when loading them
This commit is contained in:
commit
7fb030e93d
|
@ -17,7 +17,7 @@
|
|||
<h3 class="masthead-brand">Flutter InAppWebView</h3>
|
||||
<nav class="nav nav-masthead justify-content-center">
|
||||
<a class="nav-link active" href="index.html">Home</a>
|
||||
<a class="nav-link" href="page-1.html">Page 1</a>
|
||||
<a class="nav-link" href="page 1.html">Page 1</a>
|
||||
<a class="nav-link" href="page-2.html">Page 2</a>
|
||||
</nav>
|
||||
</div>
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue