Skip to content

Commit 1615549

Browse files
committed
Keep search params
1 parent ff876fb commit 1615549

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ export default function handleRequest(req, res) {
147147
}
148148

149149
let [, pathdomain, remainingpath] = u.pathname.match(/\/([^\/]*)\/(.*)/);
150-
let protocol = insecure_origins.includes(pathdomain) ? 'http' : 'https';
150+
const protocol = insecure_origins.includes(pathdomain) ? 'http' : 'https';
151151

152-
fetch(`${protocol}://${pathdomain}/${remainingpath}`, {
152+
fetch(`${protocol}://${pathdomain}/${remainingpath}${u.search}`, {
153153
method: req.method,
154154
redirect: 'manual',
155155
headers,

0 commit comments

Comments
 (0)