From 986fead402ecb21b30acad86102b022ae56c6460 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Fri, 2 Aug 2024 14:52:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E8=B0=83=E6=95=B4=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/core/src/modules/proxy/index.js | 8 ++++---- .../src/lib/proxy/mitmproxy/createRequestHandler.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/core/src/modules/proxy/index.js b/packages/core/src/modules/proxy/index.js index bbfb0ea..7ce7b90 100644 --- a/packages/core/src/modules/proxy/index.js +++ b/packages/core/src/modules/proxy/index.js @@ -67,11 +67,11 @@ module.exports = { '*.kkgithub.com': true, '*.ghproxy.*': true, - // Github ssh - "ssh.github.com": true, + // Github ssh + 'ssh.github.com': true, - // DeepL - 'www.deepl.com': true, + // DeepL + 'www.deepl.com': true, // CSDN '*.csdn.net': true, diff --git a/packages/mitmproxy/src/lib/proxy/mitmproxy/createRequestHandler.js b/packages/mitmproxy/src/lib/proxy/mitmproxy/createRequestHandler.js index 1cf708d..9ac8878 100644 --- a/packages/mitmproxy/src/lib/proxy/mitmproxy/createRequestHandler.js +++ b/packages/mitmproxy/src/lib/proxy/mitmproxy/createRequestHandler.js @@ -215,7 +215,7 @@ module.exports = function createRequestHandler (createIntercepts, middlewares, e (async () => { await requestInterceptorPromise() - if (res.writableEnded || res.waitingToWrite) { + if (res.writableEnded) { // log.info('res is writableEnded, return false') return false }