Skip to content

Commit

Permalink
fixes #78 : Add UnitTests for modules
Browse files Browse the repository at this point in the history
Refactoring Middleware module in preparation of unit test creation
  • Loading branch information
remie committed Sep 18, 2015
1 parent 9af8d85 commit 228441b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = function(req, res, next) {
}

// Add XmlHttpRequest property to request object
req.isXmlHtppRequest = (req.headers['x-requested-with'] && req.headers['x-requested-with'] == 'XMLHttpRequest');
req.isXmlHtppRequest = (req.headers['x-requested-with'] != null && req.headers['x-requested-with'] == 'XMLHttpRequest');

// Initializing Nunjucks template engine + adding it to Restify
var viewEngine = nunjucks.configure([
Expand Down

0 comments on commit 228441b

Please sign in to comment.