fix: avoid changing Content-Type to be text/plain (#361)

Avoid changing Content-Type to be  text/plain when retrying request
This commit is contained in:
Tony 2022-11-21 06:07:52 +08:00 committed by GitHub
parent 324a6d6f65
commit 4b72175a98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,7 +141,7 @@ const transform: AxiosTransform = {
resolve(config);
}, config.requestOptions.retry.delay || 1);
});
config.headers = { ...config.headers, 'Content-Type': 'application/json;charset=UTF-8' };
return backoff.then((config) => request.request(config));
},
};