Skip to content

Commit

Permalink
Update index.js to end the response stream
Browse files Browse the repository at this point in the history
  • Loading branch information
atiernan authored Apr 10, 2021
1 parent 963c2be commit 1a214ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class CSGOGSI extends EventEmitter {

req.on("end", () => {
this.processJson(body);
return res.writeHead(200);
return res.writeHead(200).end();
});
});

Expand Down Expand Up @@ -124,4 +124,4 @@ class CSGOGSI extends EventEmitter {
}
}

module.exports = CSGOGSI;
module.exports = CSGOGSI;

0 comments on commit 1a214ef

Please sign in to comment.