Comparing version 2.4.0 to 2.4.1
@@ -5,5 +5,9 @@ # restify Changelog | ||
## 2.4.1 | ||
- Support node 0.10.X TLS options in client(s) | ||
## 2.4.0 | ||
- GH-368 Route /\/.*/ does not match request /? (Ben Hutchinson) | ||
- GH-368 Route /\/.*/ does not match request /? (Ben Hutchison) | ||
- GH-366 `req.accepts()` not working with short-hand mime types | ||
@@ -10,0 +14,0 @@ - GH-362 Empty body throws TypeError in StringClient (Bryan Donovan) |
@@ -189,4 +189,8 @@ // Copyright 2012 Mark Cavage, Inc. All rights reserved. | ||
var self = this; | ||
this.agent = options.agent; | ||
this.ca = options.ca; | ||
this.cert = options.cert; | ||
this.ciphers = options.ciphers; | ||
this.connectTimeout = options.connectTimeout || false; | ||
@@ -204,2 +208,10 @@ this.headers = options.headers || {}; | ||
this.name = options.name || 'HttpClient'; | ||
this.passphrase = options.passphrase; | ||
this.pfx = options.pfx; | ||
if (options.rejectUnauthorized !== undefined) { | ||
this.rejectUnauthorized = options.rejectUnauthorized; | ||
} else { | ||
this.rejectUnauthorized = true; | ||
} | ||
this.retry = cloneRetryOptions(options.retry); | ||
@@ -245,5 +257,12 @@ this.signRequest = options.signRequest || false; | ||
this.agent = new Agent({ | ||
cert: self.cert, | ||
ca: self.ca, | ||
ciphers: self.ciphers, | ||
key: self.key, | ||
maxSockets: maxSockets, | ||
maxKeepAliveRequests: 0, | ||
maxKeepAliveTime: 0 | ||
maxKeepAliveTime: 0, | ||
passphrase: self.passphrase, | ||
pfx: self.pfx, | ||
rejectUnauthorized: self.rejectUnauthorized | ||
}); | ||
@@ -377,3 +396,5 @@ } | ||
agent: options.agent || self.agent, | ||
ca: options.ca || self.ca, | ||
cert: options.cert || self.cert, | ||
ciphers: options.ciphers || self.ciphers, | ||
connectTimeout: options.connectTimeout || self.connectTimeout, | ||
@@ -384,3 +405,7 @@ headers: options.headers || {}, | ||
method: method, | ||
passphrase: options.passphrase || self.passphrase, | ||
path: options.path || self.path, | ||
pfx: options.pfx || self.pfx, | ||
rejectUnauthorized: options.rejectUnauthorized || | ||
self.rejectUnauthorized, | ||
retry: options.retry || self.retry, | ||
@@ -387,0 +412,0 @@ signRequest: options.signRequest || self.signRequest |
@@ -30,3 +30,3 @@ { | ||
"description": "REST framework", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"repository": { | ||
@@ -33,0 +33,0 @@ "type": "git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
183645
4132