Skip to content

Commit

Permalink
fix: tiny perf optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
billiegoose committed Nov 22, 2019
1 parent 6ba7aaa commit dca3920
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ module.exports = ({ origin, insecure_origins = [], authorization = noop } = {})
if (f.headers.has(h)) {
res.setHeader(h, f.headers.get(h))
}
if (f.redirected) {
res.setHeader('x-redirected-url', f.url)
}
}
if (f.redirected) {
res.setHeader('x-redirected-url', f.url)
}
f.body.pipe(res)
})
Expand Down

0 comments on commit dca3920

Please sign in to comment.