mirror of https://github.com/status-im/web3.js.git
set connection keepalive
This commit is contained in:
parent
2b17c0f67e
commit
44dcd24e1c
|
@ -37,6 +37,7 @@ HttpProvider.prototype.send = function (payload) {
|
|||
|
||||
request.open('POST', this.host, false);
|
||||
request.setRequestHeader('Content-type','application/json');
|
||||
request.setRequestHeader('Connection','Keep-Alive');
|
||||
|
||||
try {
|
||||
request.send(JSON.stringify(payload));
|
||||
|
|
Loading…
Reference in New Issue