From a808888ea22e6c8d216c2fb4c0d373a765715dd2 Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Sun, 22 May 2016 15:55:52 +0100 Subject: [PATCH] Name currently anonymous middleware function - providing a name makes debugging & memory inspection much easier :) --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index c79ee5a..ca3f140 100644 --- a/lib/index.js +++ b/lib/index.js @@ -204,7 +204,7 @@ }; } - return function (req, res, next) { + return function corsMiddleware(req, res, next) { optionsCallback(req, function (err, options) { if (err) { next(err);