Skip to content

Commit

Permalink
added .fetchOptions to Exchange.js in ES5-compatible mode
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Jun 3, 2018
1 parent b27765f commit 8bba023
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/base/Exchange.js
Expand Up @@ -315,7 +315,7 @@ module.exports = class Exchange {
this.executeRestRequest = function (url, method = 'GET', headers = undefined, body = undefined) {

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

0 comments on commit 8bba023

Please sign in to comment.