archive
/
tstatic
Archived
1
Fork 0

hoist helmet

This commit is contained in:
Jake Howard 2017-05-06 23:12:12 +01:00
parent 8eb6cc0a7c
commit 2c2a067810
2 changed files with 2 additions and 2 deletions

View File

@ -16,6 +16,7 @@ export default function createServer(opts : Options) : express.Application {
const app = express();
app.disable('x-powered-by');
app.use(helmet());
if (process.env.NODE_ENV !== 'test') {
app.use(logging);
}
@ -43,7 +44,6 @@ export default function createServer(opts : Options) : express.Application {
app.use(handle404(opts.serveDir));
app.use(compression({ level: 9 }));
app.use(helmet());
if (opts.opbeat) {
app.use(opbeat.start({
active: opts.opbeat

View File

@ -3,7 +3,7 @@
"compression": "registry:dt/compression#0.0.0+20160725212620",
"debug": "registry:npm/debug#2.0.0+20160723033700",
"express": "registry:npm/express#4.14.0+20160925001530",
"helmet": "registry:dt/helmet#0.0.0+20161005184000",
"helmet": "registry:dt/helmet#0.0.0+20170310054102",
"serve-index": "registry:dt/serve-index#1.7.2+20160428043022"
},
"globalDependencies": {