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
Thank you for creating Elysiajs & this static plugin!
I'm trying out Elysiajs with Bun (1.1.20) to see if I can setup a basic static file server + API.
However, using Elysia 1.1.3 and @elysiajs/static 1.1.0, I get the following error back in the browser
when trying to access a file from my public dir:
{"name":"TypeError","message":"undefined is not an object (evaluating 'headers[\"cache-control\"]')"}
It seems the Response object doesn't produce any headers. The relevant code:
Hi!
Thank you for creating Elysiajs & this static plugin!
I'm trying out Elysiajs with Bun (1.1.20) to see if I can setup a basic static file server + API.
However, using Elysia 1.1.3 and @elysiajs/static 1.1.0, I get the following error back in the browser
when trying to access a file from my public dir:
It seems the Response object doesn't produce any headers. The relevant code:
When I disable the cache, the error is gone:
I'm not sure if this is a Bun related issue, or whether its something else, so I thought I post it here :)
The text was updated successfully, but these errors were encountered: