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

Fix flushing in Gzip middleware #1317

Merged
merged 2 commits into from
Apr 16, 2019
Merged

Fix flushing in Gzip middleware #1317

merged 2 commits into from
Apr 16, 2019

Conversation

htdvisser
Copy link
Contributor

This Pull Request makes the Flush() method of response writer in the Gzip middleware call Flush on the underlying response writer, instead of only on the gzip writer.

I also added an extra test case that asserts that the headers and first bytes are written and flushed after Flush() is called for the first time.

@codecov
Copy link

codecov bot commented Apr 9, 2019

Codecov Report

Merging #1317 into master will increase coverage by 0.11%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1317      +/-   ##
==========================================
+ Coverage   84.27%   84.38%   +0.11%     
==========================================
  Files          27       27              
  Lines        1990     1992       +2     
==========================================
+ Hits         1677     1681       +4     
+ Misses        205      203       -2     
  Partials      108      108
Impacted Files Coverage Δ
middleware/compress.go 77.27% <100%> (+5.84%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e3717be...ee570f2. Read the comment docs.

@vishr
Copy link
Member

vishr commented Apr 16, 2019

@htdvisser thanks for your contribution 👍

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