mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
93bb22ad0c
### What? A follow up to https://github.com/vercel/next.js/pull/94979, now we check if response headers have already been sent before trying to send a `500` response when falling back. ### Why? To get streaming respnses that already sent status `200` headers from reporting as `500`s in telemetry. ### How? Skip the fallback `500` status response if headers have already been sent. --------- Signed-off-by: Alex Langenfeld <alex.langenfeld@vercel.com>