Skip to content

Commit

Permalink
fix: Return undefined for koa headers if empty string (#580)
Browse files Browse the repository at this point in the history
  • Loading branch information
KnightNiwrem committed May 10, 2024
1 parent 2c27f1f commit 5b94f2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/convenience/frameworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ const http: FrameworkAdapter = (req, res) => {
/** koa web framework */
const koa: FrameworkAdapter = (ctx) => ({
update: Promise.resolve(ctx.request.body),
header: ctx.get(SECRET_HEADER),
header: ctx.get(SECRET_HEADER) || undefined,
end: () => {
ctx.body = "";
},
Expand Down

0 comments on commit 5b94f2e

Please sign in to comment.