Tuesday, 2 April 2019

Help a Noob with GET request?

I created a simple API that only handles GET requests. However, if I do multiple GET requests, the res.end() just appends on to the previous res.end() and so on. Why is my res.end() not clearing out after each GET request? Here is link to file. It seems as though the request is still open because when I open a private tab and make the same request, the previous responses are still there as well. I apologize if this is super trivial or if I am in the wrong subreddit, I am a total beginner when it comes to node.

Submitted April 03, 2019 at 07:05AM by gl0ckner

No comments:

Post a Comment