-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
ref(node): Compression support for node http transport #5139
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 🥳
Can we add tests for these?
2dba052
to
ee433ee
Compare
Tests added. I also moved the |
ee433ee
to
f9c5484
Compare
f9c5484
to
8b1a761
Compare
I would hold off on merging this one for a moment. I've found a strange issue with some of the Electron tests throwing It looks like that error is suppressed in these tests in the server here but everything decompresses fine after and is valid so I'm a little confused over what causes it and what the implications will be when these hit Relay. |
This can now be merged. The test failures for Electron were caused by a bug in the transport! |
Note: This is an exact duplicate of #5139 and #5203, both originally by @timfish, which accidentally got merged into the 7.x branch rather than master. #5139: This is mostly stolen straight from the [Electron transport](https://github.com/getsentry/sentry-electron/blob/master/src/main/transports/electron-net.ts). This will help with attachments! #5203: #5139 introduced a subtle bug where `options.headers` was modified which causes headers to leak between requests. This means requests after a compressed request will be incorrectly marked with `content-encoding: gzip`.
This is mostly stolen straight from the Electron transport.
This will help with attachments!