2017-07-20 7 views

Répondre

0
function: (req, res, next) { 
var domain = require('domain'); 
var d = domain.create(); 
d.on('error', function(er) {}); 
d.add(req); 
    d.add(res); 
    d.run(function() { 
     next(); 
    }); 
} 

Adding this to a common function used in config/http.js worked.