Make sure we decode uri path

This ends up being re-encoded when the recreate the uri
This commit is contained in:
Matt Bierner 2021-05-21 11:16:17 -07:00
parent 8b709a2f55
commit af3fbd968c
No known key found for this signature in database
GPG key ID: 099C331567E11888

View file

@ -260,7 +260,7 @@ async function processResourceRequest(event, requestUrl) {
parentClient.postMessage({
channel: 'load-resource',
id: requestId,
path: requestUrl.pathname,
path: decodeURIComponent(requestUrl.pathname),
scheme,
authority: decodeURIComponent(authority),
query: requestUrl.search.replace(/^\?/, ''),