HTTP server logging two times for a single request

20 Views Asked by At

I have created a server with http.createServer().

and listening at the port 8000

i have used like for every request, console.log("Request") and end the response by res,end(Welcome User..).

But for every request made in port 8000 resulting in two times logging the Request output in terminal

Here is the image of code and output

this is the code and output

0

There are 0 best solutions below