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( ...@@ -751,6 +751,7 @@ async function renderToHTMLOrFlightImpl(
const renderStream = await renderer.render(content, { const renderStream = await renderer.render(content, {
onError: htmlRendererErrorHandler, onError: htmlRendererErrorHandler,
onHeaders: onHeaders, onHeaders: onHeaders,
maxHeadersLength: 600,
nonce, nonce,
bootstrapScripts: [bootstrapScript], bootstrapScripts: [bootstrapScript],
formState, formState,
......
type StreamOptions = { type StreamOptions = {
onError?: (error: Error) => void onError?: (error: Error) => void
onHeaders?: (headers: Headers) => void onHeaders?: (headers: Headers) => void
maxHeadersLength?: number
nonce?: string nonce?: string
bootstrapScripts?: { bootstrapScripts?: {
src: string 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