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
1 changed files with 1 additions and 1 deletions

View File

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