import { Elysia } from 'elysia'
import { html } from '@elysiajs/html';
const app = new Elysia()
//@ts-ignore
.use(html())
//@ts-ignore
.get('/', ({ set }) => {
set.headers["test-header"] = "test-value"
return "<div>hallo</div>"
})
//@ts-ignore
.get('/error', ({ set, html }) => {
set.headers["test-header"] = "test-value"
return html("<div>hallo</div>")
})
.listen(3001)
console.log(`Elysia is running at ${app.server?.hostname}:${app.server?.port}`)
export type App = typeof app
console.log('Server is running on port 3001.')
I see duplicated test-header values on the /error endpoint, which is using html() whereas on the other endpoint which is not using the plugin the header looks good
when running this simple server
I see duplicated
test-header
values on the/error
endpoint, which is usinghtml()
whereas on the other endpoint which is not using the plugin the header looks goodI'm using most recent versions of all packages