From de4117c552775471274dea7eb32a931725db3420 Mon Sep 17 00:00:00 2001 From: Matthew Peveler Date: Tue, 21 Nov 2023 12:13:55 -0500 Subject: [PATCH] use agents --- lib/presto-client/index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/presto-client/index.js b/lib/presto-client/index.js index 02a05a6..ebc4722 100644 --- a/lib/presto-client/index.js +++ b/lib/presto-client/index.js @@ -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;