Skip to content

Commit

Permalink
Pass the agent option into http(s).request
Browse files Browse the repository at this point in the history
Previously this option was exposed, but it didn't actually get used by
anything.
  • Loading branch information
wadetandy committed May 31, 2019
1 parent 47f72fa commit 28203b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/delivery-node/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ module.exports = ({ url, headers, body, agent }, cb) => {
hostname: parsedUrl.hostname,
port: parsedUrl.port,
path: parsedUrl.path,
headers
headers,
agent
})
req.on('error', onError)
req.on('response', res => {
Expand Down

0 comments on commit 28203b0

Please sign in to comment.