Files
worldmonitor/scripts
Elie Habib cd738ccf43 fix(relay): guard proxy handlers against ERR_HTTP_HEADERS_SENT crash (#509)
Polymarket and World Bank proxy handlers had unguarded res.writeHead()
calls in error/timeout callbacks that race with the response callback.
When upstream partially responds then times out, both paths write
headers → process crash. Replace 5 raw writeHead+end calls with
safeEnd() which checks res.headersSent before writing.
2026-02-28 12:11:37 +04:00
..