We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff876fb commit 1615549Copy full SHA for 1615549
index.js
@@ -147,9 +147,9 @@ export default function handleRequest(req, res) {
147
}
148
149
let [, pathdomain, remainingpath] = u.pathname.match(/\/([^\/]*)\/(.*)/);
150
- let protocol = insecure_origins.includes(pathdomain) ? 'http' : 'https';
+ const protocol = insecure_origins.includes(pathdomain) ? 'http' : 'https';
151
152
- fetch(`${protocol}://${pathdomain}/${remainingpath}`, {
+ fetch(`${protocol}://${pathdomain}/${remainingpath}${u.search}`, {
153
method: req.method,
154
redirect: 'manual',
155
headers,
0 commit comments