http: remove unnecessary headers.
This commit is contained in:
parent
49bb9ed0fa
commit
2ee803810e
@ -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
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user