set connection keepalive

This commit is contained in:
Anthony Eufemio 2015-06-23 21:08:04 +09:00 committed by Marek Kotewicz
parent 2b17c0f67e
commit 44dcd24e1c
1 changed files with 1 additions and 0 deletions

View File

@ -37,6 +37,7 @@ HttpProvider.prototype.send = function (payload) {
request.open('POST', this.host, false); request.open('POST', this.host, false);
request.setRequestHeader('Content-type','application/json'); request.setRequestHeader('Content-type','application/json');
request.setRequestHeader('Connection','Keep-Alive');
try { try {
request.send(JSON.stringify(payload)); request.send(JSON.stringify(payload));