From 4872798c3036d516cacb136b8d0bb3def353ffa3 Mon Sep 17 00:00:00 2001 From: Nathan Fiscus Date: Fri, 2 Dec 2022 13:40:12 -0700 Subject: [PATCH] Work Around to Address Axios Issue This addresses an issue in Axios 1.2.0 that causes data to be unreadable. See https://github.com/axios/axios/issues/5328 --- lib/ota/common.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ota/common.js b/lib/ota/common.js index 82eae37f1c52e..7ac6a6aa196ec 100644 --- a/lib/ota/common.js +++ b/lib/ota/common.js @@ -458,6 +458,9 @@ function getAxios() { config = { proxy: false, httpsAgent: new HttpsProxyAgent(proxy), + headers:{ + "Accept-Encoding": "*", + }, }; }