mirror of
https://github.com/honojs/hono.git
synced 2024-12-01 11:51:01 +01:00
8f5ba57d0c
* fix(middleware): don't use `c.res.headers.append()`, use `set()` * denoify
9 lines
208 B
TypeScript
9 lines
208 B
TypeScript
import type { MiddlewareHandler } from '../../types.ts'
|
|
|
|
export const poweredBy = (): MiddlewareHandler => {
|
|
return async (c, next) => {
|
|
await next()
|
|
c.res.headers.set('X-Powered-By', 'Hono')
|
|
}
|
|
}
|