Skip to content

Commit

Permalink
Send Response Medata even if error occurred
Browse files Browse the repository at this point in the history
  • Loading branch information
kanziw committed Aug 18, 2022
1 parent 53c8e96 commit b6dda05
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/run.js
Expand Up @@ -77,6 +77,7 @@ async function execDuplex (ctx, handler) {

function onerror (error, ctx) {
ctx.app.emit('error', error, ctx)
ctx.response.sendMetadata()
}

function exec (ctx, handler, callback) {
Expand Down

0 comments on commit b6dda05

Please sign in to comment.