From 92916e6b6d41911ce6b772e92e2f2ec5960409f2 Mon Sep 17 00:00:00 2001 From: Nour Alharithi Date: Mon, 11 Dec 2023 09:34:23 -0800 Subject: [PATCH] fixing premature writeHead --- src/index.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 8dd51f0..e13e351 100644 --- a/src/index.ts +++ b/src/index.ts @@ -857,9 +857,6 @@ const main = async () => { normedMarketIndex ); } - - res.writeHead(200); - res.end(JSON.stringify(l2Formatted)); } else { // make the BNs into strings l2Formatted = l2WithBNToStrings(l2);