From 193c381a10af06175ad2f7af2a172fae19419b91 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Mon, 16 Nov 2020 19:02:00 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=BC=98=E9=80=89=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/mitmproxy/src/lib/interceptor/impl/proxy.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/mitmproxy/src/lib/interceptor/impl/proxy.js b/packages/mitmproxy/src/lib/interceptor/impl/proxy.js index 3111fe63..b1349904 100644 --- a/packages/mitmproxy/src/lib/interceptor/impl/proxy.js +++ b/packages/mitmproxy/src/lib/interceptor/impl/proxy.js @@ -32,7 +32,6 @@ module.exports = { const regexp = new RegExp(interceptOpt.replace) proxyTarget = req.url.replace(regexp, proxyConf) } - log.info('proxy', rOptions.path, rOptions.url) // const backup = interceptOpt.backup const proxy = proxyTarget.indexOf('http') === 0 ? proxyTarget : rOptions.protocol + '//' + proxyTarget // eslint-disable-next-line node/no-deprecated-api @@ -45,7 +44,7 @@ module.exports = { if (URL.port == null) { rOptions.port = rOptions.protocol === 'https:' ? 443 : 80 } - log.info('proxy:', rOptions.hostname, req.url, proxyTarget) + log.info('proxy:', rOptions.hostname, rOptions.path, proxyTarget) return true }, is (interceptOpt) {