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

Disable compression for event stream response in node adapter #162

Closed
nksaraf opened this issue Jun 28, 2022 · 0 comments · Fixed by #167
Closed

Disable compression for event stream response in node adapter #162

nksaraf opened this issue Jun 28, 2022 · 0 comments · Fixed by #167
Labels
bug Something isn't working
Milestone

Comments

@nksaraf
Copy link
Member

nksaraf commented Jun 28, 2022

app.use(compression({filter: (req) => req.headers['content-type']?.startsWith('text/event-stream')}))

Similar issue found in remix: remix-run/remix#3232

@nksaraf nksaraf added the bug Something isn't working label Jun 28, 2022
@nksaraf nksaraf added this to the beta milestone Jun 28, 2022
@nksaraf nksaraf closed this as completed Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant