fix
This commit is contained in:
parent
beeb013b28
commit
8aedfdf82f
|
|
@ -353,6 +353,7 @@ export const _ = {
|
|||
if (req.headers.get("accept-encoding")?.includes("gzip")) {
|
||||
const file = Bun.file(src_path);
|
||||
|
||||
if (await file.exists()) {
|
||||
return new Response(
|
||||
await gzipAsync(new Uint8Array(await file.arrayBuffer())),
|
||||
{
|
||||
|
|
@ -363,6 +364,7 @@ export const _ = {
|
|||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
return index_html;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue