TypeError: header name must be a valid http token in nodejs
<p>This is my code</p>

<pre><code>var http = require('http');
var hostname = 'localhost';
var port = 3000;

var server = http.createServer(function (req,res) {
    console.log(req.headers);
    res.writeHead(200,{'content-type':'text/html'});
    res.end('&lt;h1&gt;This is hello word&lt;/h1&gt;');
});

server.listen(port,hostname,function () {
    console.log(`server running at http://${hostname}:${port}/`);
});
</code></pre>

<p>Error I have got, node version I use is v4.4.7
<a href="https://i.stack.imgur.com/SQq6E.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SQq6E.png" alt="enter image description here"></a></p>