Skip to content

Commit

Permalink
feat(utils/create-clients): allow passing in http(s) agent (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
zcei authored Jun 22, 2017
1 parent e9fdfe2 commit 2724247
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/utils/create-clients.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ export default function createClients (opts) {
headers: opts.deliveryHeaders,
insecure: opts.deliveryInsecure,
proxy: opts.proxy,
httpAgent: opts.httpAgent,
httpsAgent: opts.httpsAgent,
application: opts.deliveryApplication,
integration: opts.deliveryIntegration
})
Expand All @@ -41,6 +43,8 @@ export default function createClients (opts) {
headers: opts.managementHeaders,
insecure: opts.managementInsecure,
proxy: opts.proxy,
httpAgent: opts.httpAgent,
httpsAgent: opts.httpsAgent,
application: opts.managementApplication,
integration: opts.managementIntegration
})
Expand All @@ -56,6 +60,8 @@ export default function createClients (opts) {
headers: opts.managementHeaders,
insecure: opts.managementInsecure,
proxy: opts.proxy,
httpAgent: opts.httpAgent,
httpsAgent: opts.httpsAgent,
application: opts.managementApplication,
integration: opts.managementIntegration
})
Expand Down

0 comments on commit 2724247

Please sign in to comment.