From b109d4bfab4ae6fd37470c3e1d8a7c63a10b9661 Mon Sep 17 00:00:00 2001 From: "Dr. Incognito" <17879520+Dr-Incognito@users.noreply.github.com> Date: Wed, 10 Jun 2020 15:14:26 +0800 Subject: [PATCH] Remove unsupported options in headers of V2Ray HTTP protocol. --- src/serverconfighelper.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/serverconfighelper.cpp b/src/serverconfighelper.cpp index 7a7caa5..19c4ed6 100644 --- a/src/serverconfighelper.cpp +++ b/src/serverconfighelper.cpp @@ -160,7 +160,6 @@ QJsonObject ServerConfigHelper::getPrettyV2RayConfig( v2RayConfig["network"] = "http"; v2RayConfig["http-opts"] = QJsonObject{ {"method", "GET"}, - {"path", "/"}, {"headers", QJsonObject{ {"host", @@ -170,8 +169,7 @@ QJsonObject ServerConfigHelper::getPrettyV2RayConfig( "www.aliyun.com", "www.sensetime.com", "www.megvii.com"}}, {"User-Agent", getRandomUserAgents(24)}, {"Accept-Encoding", QJsonArray{"gzip, deflate"}}, - {"Connection", QJsonArray{"keep-alive"}}, - {"Pragma", "no-cache"}, + {"Connection", QJsonArray{"keep-alive"}} }}, }; }