From 65cca88afc7e6a64c5fa3cd4e0883432453f46e6 Mon Sep 17 00:00:00 2001 From: Zhuohan Li Date: Thu, 3 Jan 2019 13:45:00 +0800 Subject: [PATCH] CRL support for HttpClient --- CHANGES.md | 4 ++++ lib/HttpClient.js | 3 +++ package.json | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index e714fbb..e60a86f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,6 +4,10 @@ (nothing yet) +## 2.6.5 + +* #159: fix: CRL support for HttpClient + ## 2.6.4 * #195: fix: read from response stream using non-flowing mode diff --git a/lib/HttpClient.js b/lib/HttpClient.js index 2630e7c..a5dba9e 100644 --- a/lib/HttpClient.js +++ b/lib/HttpClient.js @@ -625,6 +625,7 @@ function HttpClient(options) { this.ca = options.ca; this.checkServerIdentity = options.checkServerIdentity; this.cert = options.cert; + this.crl = options.crl; this.ciphers = options.ciphers; this.connectTimeout = options.connectTimeout || false; this.requestTimeout = options.requestTimeout || false; @@ -765,6 +766,7 @@ function HttpClient(options) { opts = { cert: self.cert, ca: self.ca, + crl: self.crl, ciphers: self.ciphers, key: self.key, maxSockets: maxSockets, @@ -959,6 +961,7 @@ HttpClient.prototype._options = function (method, options) { self.agent, ca: options.ca || self.ca, cert: options.cert || self.cert, + crl: options.crl || self.crl, ciphers: options.ciphers || self.ciphers, connectTimeout: options.connectTimeout || self.connectTimeout, requestTimeout: options.requestTimeout || self.requestTimeout, diff --git a/package.json b/package.json index 4dec300..c6ed1d1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "restify-clients", - "version": "2.6.4", + "version": "2.6.5", "main": "lib/index.js", "description": "HttpClient, StringClient, and JsonClient extracted from restify", "homepage": "http://www.restify.com",