Skip to content

Commit

Permalink
add ciphers' and secureProtocol' to options' in getAgent'
Browse files Browse the repository at this point in the history
to make them really work
  • Loading branch information
董劭田 DONG Shaotian committed Sep 21, 2013
1 parent da16120 commit 43d9d0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions request.js
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,8 @@ Request.prototype.getAgent = function () {
}
}
if (this.ca) options.ca = this.ca
if (this.ciphers) options.ciphers = this.ciphers
if (this.secureProtocol) options.secureProtocol = this.secureProtocol
if (typeof this.rejectUnauthorized !== 'undefined') options.rejectUnauthorized = this.rejectUnauthorized

if (this.cert && this.key) {
Expand Down

0 comments on commit 43d9d0a

Please sign in to comment.