mirror of
https://github.com/avwo/whistle.git
synced 2026-10-28 14:07:30 +08:00
refactor: disable h2 is https2http
This commit is contained in:
@@ -223,8 +223,8 @@ module.exports = function (req, res, next) {
|
||||
isHttpsProxy = proxyRule.isHttps || proxyRule.isHttpsInternal;
|
||||
isInternalProxy = proxyRule.isInternal;
|
||||
if (isInternalProxy || proxyRule.isHttps2http) {
|
||||
req.isH2 = false;
|
||||
if (options.protocol === 'https:') {
|
||||
req.isH2 = false;
|
||||
headers[config.HTTPS_FIELD] = 1;
|
||||
origProto = options.protocol;
|
||||
options.protocol = null;
|
||||
|
||||
Reference in New Issue
Block a user