Skip to content

Commit

Permalink
url_demo server file
Browse files Browse the repository at this point in the history
  • Loading branch information
Equan Pr committed Aug 26, 2013
1 parent aaf3a24 commit 9496b53
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/server-file/server-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ var http = require('http'),

stream.on('error', function(){
res.setHeader('Content-Type','text/html');
res.write("coba buka <a href='http://localhost:"+PORT+"/index.html'>http://localhost:"+PORT+"/index.html</a>");

var url_demo = "http://localhost:"+PORT+"/index.html";
res.write("coba buka <a href="+url_demo+">"+url_demo+"</a>");
res.end();
})

Expand Down

0 comments on commit 9496b53

Please sign in to comment.