{{ message }}
Automatically sending Transfer-Encoding: chunked but I want to send Content-Length #1835
-
Beta Was this translation helpful? Give feedback.
Answered by
MacroMelon
May 28, 2025
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
MacroMelon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

It turns out I was going about this wrong, I re-wrote it to use tryEnd and onWritable instead of write:
-- EDIT- IMPORTANT NOTE: I'm not too sure about this anymore because I noticed the while loop could potentially block the event loop for way too long if no backpressure occurs, so I don't recommend using this solution --