made html file unreachable
This commit is contained in:
parent
c9a27aa9ff
commit
88ecea941f
2 changed files with 3 additions and 3 deletions
|
@ -54,9 +54,9 @@ var server = http.createServer(option, function(req, res){
|
||||||
if(q.pathname.includes(".."))
|
if(q.pathname.includes(".."))
|
||||||
filename = "static/dotdot.html";
|
filename = "static/dotdot.html";
|
||||||
|
|
||||||
if(q.pathname.startsWith("/conscrit/")){
|
if(q.pathname.startsWith("/tracking/")){
|
||||||
id = q.pathname.substring("/conscrit/".length);
|
id = q.pathname.substring("/tracking/".length);
|
||||||
return fs.readFile("static/conscrit.html", 'utf8', function(err, data){
|
return fs.readFile("static/tracking/conscrit.html", 'utf8', function(err, data){
|
||||||
if(err)
|
if(err)
|
||||||
throw new Error("where conscrit.html is !?");
|
throw new Error("where conscrit.html is !?");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue