How can I disable chunked transfer encoding response header for a specific route?

I have a route that I need to keep compatible with an old API that depends on response-length header. I'm wondering if there's a way to do this? I've tried writing a custom hook for Fastify... it worked for really short responses... like less then 20 bytes, but longer responses always seem to fall back to chunked transfer encoding, and I'm not sure why. I've literally tried at least 30 different attempts at solving this. Any suggestions would be greatly appreciated.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?