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

Workaround to Address Axios Issue #5069

Merged
merged 2 commits into from Dec 3, 2022
Merged

Conversation

nathanfiscus
Copy link
Contributor

This addresses an issue in Axios 1.2.0 that causes data to be unreadable. See axios/axios#5328

This addresses an issue in Axios 1.2.0 that causes data to be unreadable. See axios/axios#5328
@nathanfiscus nathanfiscus changed the title Work Around to Address Axios Issue Workaround to Address Axios Issue Dec 2, 2022
@Koenkk Koenkk merged commit d9bdb91 into Koenkk:master Dec 3, 2022
@Koenkk
Copy link
Owner

Koenkk commented Dec 3, 2022

Thanks!

@@ -458,6 +458,9 @@ function getAxios() {
config = {
proxy: false,
httpsAgent: new HttpsProxyAgent(proxy),
headers: {
'Accept-Encoding': '*',
Copy link

@Daniel15 Daniel15 Dec 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This says that every encoding is supported, which may not actually be true. It's better to listed the supported encodings along with quality values (e.g. to prefer Brotli over deflate and gzip), for example 'Accept-Encoding': 'br, gzip;q=0.9, deflate;q=0.9'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants