diff --git a/index.js b/index.js index b307d27f..64e15de8 100644 --- a/index.js +++ b/index.js @@ -2,12 +2,14 @@ const http = require('http'); const server = http.createServer((req, res) => { res.writeHead(200, { - 'Content-Type': 'text/plain; charset=utf-8' + 'Content-Type': 'text/html; charset=utf-8' }); - res.write(req.headers['user-agent']); + res.write(htmlPage); res.end(); }); const port = 8000; server.listen(port, () => { console.log('Listening on ' + port); }); + +const htmlPage = '