fix
This commit is contained in:
parent
2be9c32c7e
commit
1309a9db3e
|
|
@ -36,13 +36,6 @@ export const _ = {
|
||||||
res_headers[k] = v;
|
res_headers[k] = v;
|
||||||
});
|
});
|
||||||
res_body = await res.arrayBuffer();
|
res_body = await res.arrayBuffer();
|
||||||
if (res_headers["content-encoding"] === "gzip") {
|
|
||||||
res_body = await gzipAsync(new Uint8Array(res_body));
|
|
||||||
delete res_headers["content-encoding"];
|
|
||||||
} else if (res_headers["content-encoding"] === "zstd") {
|
|
||||||
res_body = await decompress(res_body);
|
|
||||||
delete res_headers["content-encoding"];
|
|
||||||
}
|
|
||||||
|
|
||||||
return new Response(res_body, { headers: res_headers });
|
return new Response(res_body, { headers: res_headers });
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue