Skip to content

Commit

Permalink
renamed .tunnelAgent → .agent in Exchange.js for extending
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Feb 10, 2018
1 parent 892354c commit 49109e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/base/Exchange.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ module.exports = class Exchange {
this.executeRestRequest = function (url, method = 'GET', headers = undefined, body = undefined) {

let promise =
fetchImplementation (url, { method, headers, body, 'agent': this.tunnelAgent || null, timeout: this.timeout })
fetchImplementation (url, { method, headers, body, 'agent': this.agent || null, timeout: this.timeout })
.catch (e => {
if (isNode)
throw new ExchangeNotAvailable ([ this.id, method, url, e.type, e.message ].join (' '))
Expand Down

0 comments on commit 49109e4

Please sign in to comment.