You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// inflateRaw seems to work here wheras inflate and unzip do not.
71
85
// todo: validate this against other sites - if some require raw and others require non-raw, then maybe just rewrite the accept-encoding header to gzip only
72
86
decompressStream=zlib.createInflateRaw();
87
+
}elseif(encoding=='br'){
88
+
decompressStream=zlib.createBrotliDecompress();
73
89
}else{
74
90
decompressStream=zlib.createUnzip();
75
91
}
@@ -83,7 +99,6 @@ module.exports = function (config) {
83
99
// if we do get data, create a decompression stream and pipe through it
0 commit comments