The Wayback Machine - https://web.archive.org/web/20210112091550/https://github.com/expressjs/compression/pull/170
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

Bugfix/use write head instead of implicit header #170

Open

Conversation

@Icehunter
Copy link

@Icehunter Icehunter commented Mar 2, 2020

updated PR with rebase from express/compress:master to handle #128 and #129

@dougwilson
Copy link
Member

@dougwilson dougwilson commented Mar 2, 2020

Just wanted to note on here it looks like just a rebase, without addressing the review comments yet. I presume that will come in follow up commits?

@Icehunter
Copy link
Author

@Icehunter Icehunter commented Mar 2, 2020

Just wanted to note on here it looks like just a rebase, without addressing the review comments yet. I presume that will come in follow up commits?

Yes, working on that now.

@Icehunter
Copy link
Author

@Icehunter Icehunter commented Mar 2, 2020

@dougwilson I found all the comments I think needed to be fixed, except 2 perhaps that I'll work on tonight.

  1. the on('data') callback which I think doesn't need a data check; per the noop it's just a way to prevent hangs
  2. the comments from @sogaani regarding the response code. I'll look at that as well.
@Icehunter
Copy link
Author

@Icehunter Icehunter commented Apr 13, 2020

@dougwilson Is there anything more you see for this PR to have?
@sogaani with regards to your comment on the error status code; it seems to be a big edge case. I work on a very large API and haven't encountered this issue before.

@dougwilson
Copy link
Member

@dougwilson dougwilson commented Apr 13, 2020

I was under the impression you were going to make changes in regards to the two bullet points above, which is what I'm waiting on. I never saw any additional comments after that message. Are you still working on them?

@Icehunter
Copy link
Author

@Icehunter Icehunter commented Apr 16, 2020

Eh! Sorry; I did leave the on('data') callback as is in the test, but I removed all the logs and I believe covered everything you had commented on in the previous test.

For the second bullet point I quite literally have no clue off the top of my head how to even cover that in an edge case test.

@dougwilson dougwilson added the pr label Jul 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.