Fixed response data in axios request with accept-encoding to identity

This commit is contained in:
2022-11-30 12:17:30 +07:00
parent 65e3cb9797
commit bb20b3b90a
4 changed files with 7 additions and 6 deletions

View File

@@ -247,7 +247,7 @@ program
// Force reset config server from client init
if (!config.server || options.force) {
config.server = options.server || config.server || SERVER_DEFAULT_URL;
config.server = options.server || SERVER_DEFAULT_URL;
}
if (!config.token && options.token) {

View File

@@ -10,6 +10,7 @@ const getTokenFree = async (baseUrl: string, data: any = {}) => {
},
headers: {
"x-access-type": "FREE",
"Accept-Encoding": "identity",
},
});
};