File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ var crypto = require('crypto');
2424 * @param {Object } options The configuration object.
2525 */
2626var lusca = module . exports = function ( options ) {
27- var headers = [ ] , nonce ;
27+ var headers = [ ] ;
28+ var nonce ;
2829
2930 if ( options ) {
3031 Object . keys ( lusca ) . forEach ( function ( key ) {
@@ -33,8 +34,6 @@ var lusca = module.exports = function (options) {
3334 nonce = true ;
3435 }
3536
36- //if (key === 'csp' && lusca[key](config) && lusca[key](config)[styleNonce])
37-
3837 if ( config ) {
3938 headers . push ( lusca [ key ] ( config ) ) ;
4039 }
@@ -57,8 +56,7 @@ var lusca = module.exports = function (options) {
5756 next ( err ) ;
5857 return ;
5958 }
60- header ( req , res , next ) ;
61- return ;
59+ return header ( req , res , next ) ;
6260 } ;
6361 } ( chain ) ) ;
6462 } ) ;
You can’t perform that action at this time.
0 commit comments