Fixed response data in axios request with accept-encoding to identity
This commit is contained in:
parent
65e3cb9797
commit
bb20b3b90a
6
package-lock.json
generated
6
package-lock.json
generated
@ -1,15 +1,15 @@
|
|||||||
{
|
{
|
||||||
"name": "@cubetiq/hlt",
|
"name": "@cubetiq/hlt",
|
||||||
"version": "0.1.2",
|
"version": "0.1.5",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@cubetiq/hlt",
|
"name": "@cubetiq/hlt",
|
||||||
"version": "0.1.2",
|
"version": "0.1.5",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^1.0.0",
|
"axios": "^1.2.0",
|
||||||
"commander": "^9.3.0",
|
"commander": "^9.3.0",
|
||||||
"https-proxy-agent": "^5.0.1",
|
"https-proxy-agent": "^5.0.1",
|
||||||
"socket.io-client": "^4.5.1"
|
"socket.io-client": "^4.5.1"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@cubetiq/hlt",
|
"name": "@cubetiq/hlt",
|
||||||
"version": "0.1.4",
|
"version": "0.1.5",
|
||||||
"description": "A lightweight http tunnel client using nodejs and socket.io client",
|
"description": "A lightweight http tunnel client using nodejs and socket.io client",
|
||||||
"main": "dist/client.js",
|
"main": "dist/client.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
@ -22,7 +22,7 @@
|
|||||||
"author": "Sambo Chea <sombochea@cubetiqs.com>",
|
"author": "Sambo Chea <sombochea@cubetiqs.com>",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^1.0.0",
|
"axios": "^1.2.0",
|
||||||
"commander": "^9.3.0",
|
"commander": "^9.3.0",
|
||||||
"https-proxy-agent": "^5.0.1",
|
"https-proxy-agent": "^5.0.1",
|
||||||
"socket.io-client": "^4.5.1"
|
"socket.io-client": "^4.5.1"
|
||||||
|
@ -247,7 +247,7 @@ program
|
|||||||
|
|
||||||
// Force reset config server from client init
|
// Force reset config server from client init
|
||||||
if (!config.server || options.force) {
|
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) {
|
if (!config.token && options.token) {
|
||||||
|
@ -10,6 +10,7 @@ const getTokenFree = async (baseUrl: string, data: any = {}) => {
|
|||||||
},
|
},
|
||||||
headers: {
|
headers: {
|
||||||
"x-access-type": "FREE",
|
"x-access-type": "FREE",
|
||||||
|
"Accept-Encoding": "identity",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user