Browse files

fix missing query parsing in server

  • Loading branch information...
1 parent 79ca069 commit 5c6558ed91da40bdbff6b779b79ff58da8ce5071 @defunctzombie defunctzombie committed Dec 17, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 server.js
View
2 server.js
@@ -134,6 +134,8 @@ var handle_req = function (req, res) {
return proxy_request(client, req, res);
}
+ var parsed = url.parse(req.url, true);
+
// redirect main page to github reference
if (req.url === '/' && !parsed.query.new) {
res.writeHead(301, { Location: 'http://shtylman.github.com/localtunnel/' });

0 comments on commit 5c6558e

Please sign in to comment.