Skip to content

Can I flush response body? #1606

Answered by bittrance
bittrance asked this question in Q&A
Discussion options

You must be logged in to vote

Interestingly, some low-level component reacts to newline. Adding a write!(buf, "\n")? in the stream triggers a flush. This is regardless of whether the content type is text/* or not. It solves my problem, tho.

Replies: 2 comments

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 bittrance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants