This commit is contained in:
Rizky 2024-06-21 13:46:15 +07:00
parent 975b007cb1
commit 79fd7854b8
1 changed files with 0 additions and 2 deletions

View File

@ -37,9 +37,7 @@ export const _ = {
});
res_body = await res.arrayBuffer();
let enc = res_headers["content-encoding"];
if (res_headers["content-encoding"] === "gzip") {
res_body = Bun.gunzipSync(res_body);
delete res_headers["content-encoding"];
} else if (res_headers["content-encoding"] === "zstd") {
res_body = await decompress(res_body);