remove x-powered-by. Closes

This commit is contained in:
TJ Holowaychuk 2014-12-04 01:01:57 -08:00
parent 54ca7753fd
commit e4076ce930
2 changed files with 0 additions and 5 deletions

View file

@ -41,7 +41,6 @@ function Application() {
if (!(this instanceof Application)) return new Application;
this.env = process.env.NODE_ENV || 'development';
this.subdomainOffset = 2;
this.poweredBy = true;
this.middleware = [];
this.context = Object.create(context);
this.request = Object.create(request);
@ -82,7 +81,6 @@ app.inspect =
app.toJSON = function(){
return only(this, [
'subdomainOffset',
'poweredBy',
'env'
]);
};
@ -174,8 +172,6 @@ app.onerror = function(err){
*/
function *respond(next) {
if (this.app.poweredBy) this.set('X-Powered-By', 'koa');
yield *next;
// allow bypassing koa

View file

@ -57,7 +57,6 @@ describe('app.toJSON()', function(){
obj.should.eql({
subdomainOffset: 2,
poweredBy: true,
env: 'test'
});
})