`502`s from dev worker when adding headers

If I add over 1kb of headers to the response object the I get several Uncaught (in response) Error: Network connection lost. errors and the worker responds with a 502 response. The requests work fine in production and in miniflare.
502s_from_headers.png
Was this page helpful?