Skip to content

Commit

Permalink
Merge pull request #2625 from boogerlad/patch-3
Browse files Browse the repository at this point in the history
disable express' built in `x-powered-by` header
  • Loading branch information
rachaelshaw committed Feb 17, 2015
2 parents 7327cea + 1733763 commit 00511b4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/hooks/http/initialize.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@ module.exports = function(sails) {
var express = require('express');



// Create express server
var app = sails.hooks.http.app = express();

app.disable('x-powered-by');
// (required by Express 3.x)
var usingSSL = sails.config.ssl.key && sails.config.ssl.cert;

Expand Down

0 comments on commit 00511b4

Please sign in to comment.