Skip to content
Discussion options

You must be logged in to vote

Hi @ssshake sorry for the delay in response; it may help if you wanted to provide an example of your use-case, especially because proxies should not have this issue, as they will use .write/.end typically (see https://www.npmjs.com/package/express-http-proxy and similar packages).

For the first option, you just provide a Buffer object as the argument to res.send. How to get a Buffer object will depending on what exactly doing, so I don't have a way to provide an example about that aspect unless you can provide some example code that is not working as you expect.

For the last option, you have to use something like on-headers (https://www.npmjs.com/package/on-headers) to alter the content-t…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by bjohansebas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #4509 on August 23, 2024 09:05.