Skip to content

Commit

Permalink
optimize: 通过DS代理的请求,响应头添加 DS-Proxy-Request
Browse files Browse the repository at this point in the history
(cherry picked from commit d6f550c)
  • Loading branch information
wangliang181230 committed Sep 30, 2024
1 parent 34b9963 commit c8d17c1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:') {
Expand Down

0 comments on commit c8d17c1

Please sign in to comment.