2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-08 17:22:34 +03:00

fix(adapters/http): remove repeated compression algorithm (#4820)

Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
Bassel Rachid
2022-09-14 15:28:09 -04:00
committed by GitHub
parent 379fdebc46
commit 242c1d9782
+1 -1
View File
@@ -310,7 +310,7 @@ export default function httpAdapter(config) {
return reject(customErr);
}
headers.set('Accept-Encoding', 'gzip, deflate, gzip, br', false);
headers.set('Accept-Encoding', 'gzip, deflate, br', false);
const options = {
path: buildURL(parsed.path, config.params, config.paramsSerializer).replace(/^\?/, ''),