fix(nitro): pass query params to localCall in service worker (#530)

This commit is contained in:
Ahad Birang 2021-09-14 23:38:17 +04:30 committed by GitHub
parent 13abec6143
commit 64a426527f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ async function handleEvent (url, event) {
}
const r = await localCall({
event,
url: url.pathname,
url: url.pathname + url.search,
host: url.hostname,
protocol: url.protocol,
headers: event.request.headers,