2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-14 18:42:33 +03:00

fix: fixed Brotli decompression; (#5353)

test: added decompression tests;
fix: added legacy `x-gzip` & `x-compress` encoding types;
This commit is contained in:
Dmitriy Mozgovoy
2022-12-07 20:57:02 +02:00
committed by GitHub
parent 56e9ca1a86
commit 1e58a659ec
3 changed files with 85 additions and 31 deletions
+1
View File
@@ -43,6 +43,7 @@ const isStandardBrowserEnv = (() => {
const isStandardBrowserWebWorkerEnv = (() => {
return (
typeof WorkerGlobalScope !== 'undefined' &&
// eslint-disable-next-line no-undef
self instanceof WorkerGlobalScope &&
typeof self.importScripts === 'function'
);