Skip to content

Commit

Permalink
support axios 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yuko1101 committed Dec 3, 2022
1 parent cd2bb0c commit e83f542
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -31,7 +31,7 @@
},
"homepage": "https://enka-network-api.vercel.app",
"dependencies": {
"axios": "^1.1.3",
"axios": "^1.2.0",
"unzipper": "^0.10.11"
}
}
2 changes: 1 addition & 1 deletion src/utils/axios_utils.js
Expand Up @@ -9,7 +9,7 @@ const axios = new Axios({});
* @returns {Promise<AxiosResponse>}
*/
module.exports.fetchJSON = async (url, enka, enableTimeout = false) => {
const options = { headers: { "User-Agent": enka.options.userAgent } };
const options = { headers: { "User-Agent": enka.options.userAgent, "accept-encoding": "*" } };
if (enableTimeout) options.timeout = enka.options.timeout;

const res = await axios.get(url, options);
Expand Down

1 comment on commit e83f542

@vercel
Copy link

@vercel vercel bot commented on e83f542 Dec 3, 2022

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

enka-network-api – ./

enka-network-api-git-main-yuko1101.vercel.app
enka-network-api-yuko1101.vercel.app
enka-network-api.vercel.app

Please sign in to comment.