docs: 优选优化

pull/180/head
xiaojunnuo 2020-11-16 19:02:00 +08:00
parent e8c8bf4ca2
commit 193c381a10
1 changed files with 1 additions and 2 deletions

View File

@ -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) {