Skip to content

encode: flush already compressed data to the stream#6471

Merged
mholt merged 1 commit intomasterfrom
encode-flush
Jul 27, 2024
Merged

encode: flush already compressed data to the stream#6471
mholt merged 1 commit intomasterfrom
encode-flush

Conversation

@WeidiDeng
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown
Member

@mholt mholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Weidi!

This does fix it! It looks like we were not flushing the encoder in FlushError(), which... seems like a mistake, since the ResponseWriter can't flush anything if the encoder hasn't flushed it first.

Really appreciate this, your fix is much better than what I was coming up with 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants