cli-tunnel 1.2.0-beta.7 → 1.2.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -243,7 +243,9 @@ const server = http.createServer((req, res) => {
|
|
|
243
243
|
// #18: Guard against malformed URI encoding
|
|
244
244
|
let decodedUrl;
|
|
245
245
|
try {
|
|
246
|
-
|
|
246
|
+
// Strip query string before resolving file path
|
|
247
|
+
const urlPath = (req.url || '/').split('?')[0];
|
|
248
|
+
decodedUrl = decodeURIComponent(urlPath);
|
|
247
249
|
}
|
|
248
250
|
catch {
|
|
249
251
|
res.writeHead(400);
|