Skip to content

Commit

Permalink
Merge pull request expressjs#78 from ErisDS/named-middleware
Browse files Browse the repository at this point in the history
Provide name for currently anonymous middleware function
  • Loading branch information
troygoode authored Aug 23, 2016
2 parents 3253923 + a808888 commit a0fc8f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@
};
}

return function (req, res, next) {
return function corsMiddleware(req, res, next) {
optionsCallback(req, function (err, options) {
if (err) {
next(err);
Expand Down

0 comments on commit a0fc8f3

Please sign in to comment.