mirror of
https://github.com/bitinflow/server.git
synced 2026-03-13 21:45:54 +00:00
parse query from url
This commit is contained in:
@@ -265,7 +265,7 @@ server.on('request', function(req, res) {
|
|||||||
return res.end();
|
return res.end();
|
||||||
}
|
}
|
||||||
|
|
||||||
var parsed = url.parse(req.url);
|
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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user