Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

encode: flush already compressed data to the stream #6471

Merged
merged 1 commit into from
Jul 27, 2024
Merged

Conversation

WeidiDeng
Copy link
Member

No description provided.

Copy link
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 😄

@mholt mholt merged commit 976469c into master Jul 27, 2024
23 checks passed
@mholt mholt deleted the encode-flush branch July 27, 2024 23:46
@mholt mholt added this to the v2.8.5 milestone Jul 27, 2024
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