Thaidikar
Thaidikar
CDCloudflare Developers
Created by Thaidikar on 5/6/2024 in #miniflare
HTTP Header size limit
Currently I am maxing out around 24689 bytes in the headers
2 replies
CDCloudflare Developers
Created by Thaidikar on 5/6/2024 in #miniflare
HTTP Header size limit
Undici was an additional issue. I had to add the following within the code starting miniflare;
import { Agent, setGlobalDispatcher } from 'undici';

// Enforce node standards
setGlobalDispatcher(new Agent({
maxHeaderSize: 32768,
headersTimeout: 2000,
}))
import { Agent, setGlobalDispatcher } from 'undici';

// Enforce node standards
setGlobalDispatcher(new Agent({
maxHeaderSize: 32768,
headersTimeout: 2000,
}))
This let me get past the default but I'm still having issues getting miniflare to work all the way up to the Worker limit of 32 KB
2 replies