Commit db7daa1b51abd9bb00d87fe4e6e4dfd547733cc5

Authored by Adhidarma Hadiwinoto
1 parent 20ceeda34b
Exists in master

Content-Type

Showing 1 changed file with 3 additions and 1 deletions Side-by-side Diff

... ... @@ -3,12 +3,14 @@ var config = require('./config.json');
3 3  
4 4 http.createServer(function(req, res) {
5 5 var newUrl = 'http://trxmon.host2host.id/';
6   -
  6 +
7 7 /*
8 8 res.writeHead(302, {
9 9 'Location': newUrl
10 10 });
11 11 */
12 12  
  13 + res.setHeader('Content-Type', 'text/html');
  14 +
13 15 res.end('We are moving to <a href="' + newUrl + '">' + newUrl + '</a>');
14 16 }).listen(config.listen_port);