-
-
Notifications
You must be signed in to change notification settings - Fork 941
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
Gzip seems not work in my project #945
Comments
What Got version are you running? |
The latest release version with |
Checked. NOT THIS REASON.Very weird because I tested with the same code on runkit and the results were correct
|
I have found out the reason.
decompressResponse is not a function but a empty object.
After removing |
Glad you've solved the issue! PR welcome :) |
It used to work some while ago. Now electron support is broken. |
Was this fixed? It seems to be broken with electron, and fails with the same error. |
Electron support has been deprecated, as the |
Notice that the |
What would you like to discuss?
Enviroment:
Running in render process with Electron 7 (But not use Electron.net.)
Code:
got('http://www.example.com', { decompress: true }).then(r => console.log(r.body));
Result:
It looks like the gzip data is not being decoded correctly
Checklist
yarn install
.yarn install
.The text was updated successfully, but these errors were encountered: