Why my node server processes the request twice?
<p>I have following simple node server.</p>

<pre><code>const http = require('http');

http.createServer(function(req, resp) {

    console.log("request arrived.")
    resp.writeHead(200, { 'Content-Type': 'application/json' });
    resp.end("Hello world!!");

}).listen(3000);
</code></pre>

<p>Whenever I hit the request using url  <code>http://localhost:3000/</code>,
it printing   <code>request arrived</code> message two times.</p>

<p>I don't know,what is the exact reason for it.
Will some please explain it.</p>

<p>I have attached screenshot.
<a href="https://i.stack.imgur.com/BT3jf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BT3jf.png" alt="enter image description here"></a></p>