/**
 * HTTP Server Settings
 * (sails.config.http)
 *
 * Configuration for the underlying HTTP server in Sails.
 * Only applies to HTTP requests (not WebSockets)
 *
 * For more information on configuration, check out:
 * http://sailsjs.org/#!/documentation/reference/sails.config/sails.config.http.html
 */

module.exports.http = {

  /****************************************************************************
  *                                                                           *
  * Express middleware to use for every Sails request. To add custom          *
  * middleware to the mix, add a function to the middleware config object and *
  * add its key to the "order" array. The $custom key is reserved for         *
  * backwards-compatibility with Sails v0.9.x apps that use the               *
  * `customMiddleware` config option.                                         *
  *                                                                           *
  ****************************************************************************/

  middleware: {

  /***************************************************************************
  *                                                                          *
  * The order in which middleware should be run for HTTP request. (the Sails *
  * router is invoked by the "router" middleware below.)                     *
  *                                                                          *
  ***************************************************************************/

    // order: [
    //   'startRequestTimer',
    //   'cookieParser',
    //   'session',
    //   'myRequestLogger',
    //   'bodyParser',
    //   'handleBodyParserError',
    //   'compress',
    //   'methodOverride',
    //   'poweredBy',
    //   '$custom',
    //   'router',
    //   'www',
    //   'favicon',
    //   '404',
    //   '500'
    // ],

  /****************************************************************************
  *                                                                           *
  * Example custom middleware; logs each request to the console.              *
  *                                                                           *
  ****************************************************************************/

    // myRequestLogger: function (req, res, next) {
    //     console.log("Requested :: ", req.method, req.url);
    //     return next();
    // }


  /***************************************************************************
  *                                                                          *
  * The body parser that will handle incoming multipart HTTP requests. By    *
  * default as of v0.10, Sails uses                                          *
  * [skipper](http://github.com/balderdashy/skipper). See                    *
  * http://www.senchalabs.org/connect/multipart.html for other options.      *
  *                                                                          *
  * Note that Sails uses an internal instance of Skipper by default; to      *
  * override it and specify more options, make sure to "npm install skipper" *
  * in your project first.  You can also specify a different body parser or  *
  * a custom function with req, res and next parameters (just like any other *
  * middleware function).                                                    *
  *                                                                          *
  ***************************************************************************/

    // bodyParser: require('skipper')({strict: true})

  },

  /***************************************************************************
  *                                                                          *
  * The number of seconds to cache flat files on disk being served by        *
  * Express static middleware (by default, these files are in `.tmp/public`) *
  *                                                                          *
  * The HTTP static cache is only active in a 'production' environment,      *
  * since that's the only time Express will cache flat-files.                *
  *                                                                          *
  ***************************************************************************/

  // cache: 31557600000
};

@@ -1060,24 +1060,328 @@
 dleware: %7B%0A%0A
+    // set 'X-Powered-By'%0A    poweredBy: false,%0A    setPoweredBy: function(request, response, next) %7B%0A      //disable 'x-powered-by'%0A      //var expressApp = sails.hooks.http.app;%0A      //expressApp.disable('x-powered-by');%0A      response.set('X-Powered-By', 'The Huoshui Team');%0A      next();%0A    %7D,%0A%0A%0A%0A
   /*********
@@ -1439,32 +1439,32 @@
 ***************%0A
-
   *             
@@ -1846,19 +1846,16 @@
 **/%0A%0A   
- //
  order: 
@@ -1855,27 +1855,24 @@
 order: %5B%0A   
- //
    'startReq
@@ -1882,27 +1882,24 @@
 tTimer',%0A   
- //
    'cookiePa
@@ -1904,27 +1904,24 @@
 Parser',%0A   
- //
    'session'
@@ -1921,27 +1921,24 @@
 ession',%0A   
- //
    'myReques
@@ -1946,27 +1946,24 @@
 Logger',%0A   
- //
    'bodyPars
@@ -1966,27 +1966,24 @@
 Parser',%0A   
- //
    'handleBo
@@ -1997,27 +1997,24 @@
 rError',%0A   
- //
    'compress
@@ -2015,27 +2015,24 @@
 mpress',%0A   
- //
    'methodOv
@@ -2039,27 +2039,24 @@
 erride',%0A   
- //
    'poweredB
@@ -2059,26 +2059,45 @@
 redBy',%0A    
-//
+  'setPoweredBy',%0A   
    '$custom'
@@ -2097,27 +2097,24 @@
 custom',%0A   
- //
    'router',
@@ -2113,27 +2113,24 @@
 router',%0A   
- //
    'www',%0A  
@@ -2126,27 +2126,24 @@
   'www',%0A   
- //
    'favicon'
@@ -2143,27 +2143,24 @@
 avicon',%0A   
- //
    '404',%0A  
@@ -2161,21 +2161,18 @@
 4',%0A    
-//
   
- 
 '500'%0A  
@@ -2172,19 +2172,16 @@
 500'%0A   
- //
  %5D,%0A%0A  /

set x-power-by header for all response