Skip to content

Commit

Permalink
Add "Connection: keep-alive" header to requests
Browse files Browse the repository at this point in the history
  • Loading branch information
kika authored and mbleigh committed Jan 9, 2019
1 parent 2447947 commit 1386ad7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ var _request = function(options, logOptions) {

logger.debug(">>> HTTP REQUEST", options.method, options.url, qsLog, "\n", bodyLog);

options.headers = options.headers || {};
options.headers["connection"] = "keep-alive";

return new Promise(function(resolve, reject) {
var req = request(options, function(err, response, body) {
if (err) {
Expand Down

0 comments on commit 1386ad7

Please sign in to comment.