Skip to content

Commit

Permalink
Fix koa middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
oboz committed Apr 29, 2021
1 parent 043ece3 commit 5d5ecf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function noflocExpress() {
}
}

async function noflocKoa() {
function noflocKoa() {
return async function(ctx, next) {
let header = ctx.response.header[name] || rule;
if (header.indexOf(rule) === -1) {
Expand Down

0 comments on commit 5d5ecf8

Please sign in to comment.