Skip to content

Commit

Permalink
use agents
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterOdin committed Nov 21, 2023
1 parent 6ec900d commit de4117c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/presto-client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,10 @@ Client.prototype.request = function(opts, callback) {
if (opts.body)
contentBody = opts.body;

/*
opts.agent = new adapter.Agent(opts); // Otherwise SSL params are ignored.
*/
opts.agent = {
http: new http.Agent(),
https: new https.Agent(client.ssl),
}

var parser = this.jsonParser;

Expand Down

0 comments on commit de4117c

Please sign in to comment.