honojs / website

Repository for hono.dev
https://hono.dev
68 stars 208 forks source link

hono/compress throws "TypeError: Can't modify immutable headers" on cloudflare #418

Closed abhishiv closed 5 days ago

abhishiv commented 5 days ago

Hey all

I just noticed that while using hono@3.3.1 the server returns 500 when hono/compress is enabled

import { compress } from "hono/compress";

const app = new Hono();
app.use(compress());

app.get("/*", serveStatic());

I wondering if anyone else had this issue occurred? Or can suggest a workaround.