Unverified Commit c26c10f4 authored by Sebastian Markbåge's avatar Sebastian Markbåge Committed by GitHub

Reduce max header length emitted (#58204)

Seems like the default 2000 limit is getting hit. Start more
conservative while investigating why. Picked half to start.
parent 2071880c
......@@ -751,6 +751,7 @@ async function renderToHTMLOrFlightImpl(
const renderStream = await renderer.render(content, {
onError: htmlRendererErrorHandler,
onHeaders: onHeaders,
maxHeadersLength: 600,
nonce,
bootstrapScripts: [bootstrapScript],
formState,
......
type StreamOptions = {
onError?: (error: Error) => void
onHeaders?: (headers: Headers) => void
maxHeadersLength?: number
nonce?: string
bootstrapScripts?: {
src: string
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment