From 1a214efb51a2309d1652a0c8b72cdb8691a6e045 Mon Sep 17 00:00:00 2001 From: Alex Tiernan Date: Sat, 10 Apr 2021 22:47:24 +0100 Subject: [PATCH] Update index.js to end the response stream --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index e2ba872..253c959 100644 --- a/index.js +++ b/index.js @@ -23,7 +23,7 @@ class CSGOGSI extends EventEmitter { req.on("end", () => { this.processJson(body); - return res.writeHead(200); + return res.writeHead(200).end(); }); }); @@ -124,4 +124,4 @@ class CSGOGSI extends EventEmitter { } } -module.exports = CSGOGSI; \ No newline at end of file +module.exports = CSGOGSI;