parseInt content-header
MODIFY
src/utils/Logging.ts
src/utils/Logging.ts
@@ -427,7 +427,7 @@ export default class Logging {
let sizeOfResponseDataKB = 0;
if (response.config.headers['Content-Length']) {
sizeOfResponseDataKB = Utils.truncTo(
- Utils.createDecimal(response.config.headers['Content-Length']).div(1024).toNumber(), 2);
+ Utils.createDecimal(parseInt(response.config.headers['Content-Length'])).div(1024).toNumber(), 2);
} else if (response.data) {
sizeOfResponseDataKB = Utils.truncTo(
Utils.createDecimal(sizeof(response.data)).div(1024).toNumber(), 2);

parseInt content-header