Skip to content

Commit

Permalink
chore(netjet): Name anonymous middleware function
Browse files Browse the repository at this point in the history
- providing a name makes debugging & memory inspection much easier :)
  • Loading branch information
ErisDS committed May 28, 2016
1 parent 2a81918 commit 92caa21
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 @@ module.exports = function netjet(options) {

var cache = new LRU(options.cache);

return function (req, res, next) {
return function netjetMiddleware(req, res, next) {
function appendHeader(field, value) {
var prev = res.getHeader(field);

Expand Down

0 comments on commit 92caa21

Please sign in to comment.