Skip to content

Commit

Permalink
Remove unsupported options in headers of V2Ray HTTP protocol.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Incognito committed Jun 10, 2020
1 parent b4cd47e commit b109d4b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/serverconfighelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ QJsonObject ServerConfigHelper::getPrettyV2RayConfig(
v2RayConfig["network"] = "http";
v2RayConfig["http-opts"] = QJsonObject{
{"method", "GET"},
{"path", "/"},
{"headers",
QJsonObject{
{"host",
Expand All @@ -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"}}
}},
};
}
Expand Down

0 comments on commit b109d4b

Please sign in to comment.