mirror of
https://github.com/bitinflow/server.git
synced 2026-03-13 13:35:53 +00:00
fix missing query parsing in server
This commit is contained in:
@@ -134,6 +134,8 @@ var handle_req = function (req, res) {
|
|||||||
return proxy_request(client, req, res);
|
return proxy_request(client, req, res);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var parsed = url.parse(req.url, true);
|
||||||
|
|
||||||
// redirect main page to github reference
|
// redirect main page to github reference
|
||||||
if (req.url === '/' && !parsed.query.new) {
|
if (req.url === '/' && !parsed.query.new) {
|
||||||
res.writeHead(301, { Location: 'http://shtylman.github.com/localtunnel/' });
|
res.writeHead(301, { Location: 'http://shtylman.github.com/localtunnel/' });
|
||||||
|
|||||||
Reference in New Issue
Block a user