|
|
|
@ -128,6 +128,7 @@ module.exports = function createRequestHandler (createIntercepts, middlewares, e
|
|
|
|
|
// log.debug('rOptions:', rOptions.hostname + rOptions.path, '\r\n', rOptions)
|
|
|
|
|
// log.debug('agent:', rOptions.agent)
|
|
|
|
|
// log.debug('agent.options:', rOptions.agent.options)
|
|
|
|
|
res.setHeader('DS-Proxy-Request', rOptions.hostname) |
|
|
|
|
proxyReq = (rOptions.protocol === 'https:' ? https : http).request(rOptions, (proxyRes) => { |
|
|
|
|
const cost = new Date() - start |
|
|
|
|
if (rOptions.protocol === 'https:') { |
|
|
|
|