-
Notifications
You must be signed in to change notification settings - Fork 27k
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
v9.3.4 breaks custom http2 servers due to embedded "compression" module #11669
Comments
Hello, I would like to work on this issue |
Hello, I’ve been following this issue and it seems that this issue has ben fixed form Node.js #34145 were is has been add the support for sensitive headers |
Please verify that your issue can be recreated with Why was this issue marked with the
|
This issue has been automatically closed because it wasn't verified against next@canary. If you think it was closed by accident, please leave a comment. If you are running into a similar issue, please open a new issue with a reproduction. Thank you. |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Bug report
Describe the bug
After upgrading from next.js v9.3.3 to v9.3.4, my production application will no longer run. This is because I'm using a custom http2 server and version 9.3.4 seems to be embedding a custom copy of the
compression
npm module which doesn't support http2 servers. The error printed is:This is caused by this well-known bug: expressjs/compression#155 and I've worked around this before in my app by manually using that PR as my dependency instead of the official
compression
package, however, it looks like next.js is now embedding it's own copy of compression somewhere in/dist/compiled/compression
which causes my site to break.To Reproduce
Run a barebones Next.js app but with a custom server that uses the http2 module like this:
Expected behavior
The app should still run without any error.
Screenshots
N/A
System information
The text was updated successfully, but these errors were encountered: