http: remove unnecessary headers.

This commit is contained in:
Christopher Jeffrey 2017-02-28 05:35:25 -08:00
parent 49bb9ed0fa
commit 2ee803810e
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -105,10 +105,7 @@ HTTPServer.prototype._init = function _init() {
}
res.setHeader('X-Bcoin-Version', pkg.version);
res.setHeader('X-Bcoin-Agent', this.pool.options.agent);
res.setHeader('X-Bcoin-Network', this.network.type);
res.setHeader('X-Bcoin-Height', this.chain.height + '');
res.setHeader('X-Bcoin-Tip', this.chain.tip.rhash());
}));
this.use(co(function* (req, res) {
@ -1344,7 +1341,6 @@ HTTPServer.prototype._initIO = function _initIO() {
socket.emit('version', {
version: pkg.version,
agent: self.pool.options.agent,
network: self.network.type
});
});