We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Some servers are not sending a zlib header in their deflated data. CURL had the same problem and implemented a "fix" for it: https://github.com/curl/curl/blob/5c932f8fe9dad94a7417702958ffa9e8db67c549/lib/content_encoding.c#L227-L229
Axios is also returning a Z_DATA_ERROR in this case.
Z_DATA_ERROR
Use axios to request a page without a zlib header in the deflated data (e.g. https://www.konicaminolta.eu/eu-en/about-us/corporate-book) and force it to only accept deflate encoding.
let url = 'https://www.konicaminolta.eu/eu-en/about-us/corporate-book'; let config = { headers: { 'Accept-Encoding': 'deflate' } }; await axios.get(url, config);
Getting the correctly inflated data.
The text was updated successfully, but these errors were encountered:
Hi 👋
Please could you retry with the latest version and open a new issue should this error still be relevant?
Thanks
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the bug
Some servers are not sending a zlib header in their deflated data. CURL had the same problem and implemented a "fix" for it: https://github.com/curl/curl/blob/5c932f8fe9dad94a7417702958ffa9e8db67c549/lib/content_encoding.c#L227-L229
Axios is also returning a
Z_DATA_ERROR
in this case.To Reproduce
Use axios to request a page without a zlib header in the deflated data (e.g. https://www.konicaminolta.eu/eu-en/about-us/corporate-book) and force it to only accept deflate encoding.
Expected behavior
Getting the correctly inflated data.
Environment
Additional context/Screenshots
The text was updated successfully, but these errors were encountered: