Skip to content

Commit

Permalink
Merge pull request #83 from artofspeed/add-keep-alive
Browse files Browse the repository at this point in the history
speed up response by 4x fold
  • Loading branch information
stephenmcd authored Apr 18, 2017
2 parents 1763e2a + f9d2d00 commit b0d4db4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/internal/make-url-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ var https = require('https');
var parse = require('url').parse;
var version = require('../version');


// add keep-alive header to speed up request
https.globalAgent.keepAlive = true;


/**
* Makes a secure HTTP GET request for the given URL.
*
Expand Down

0 comments on commit b0d4db4

Please sign in to comment.