mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-06-18 06:31:13 +00:00
follow redirects if present
This commit is contained in:
@@ -31,6 +31,7 @@ std::string HTTP::Get(const std::string &IP) {
|
|||||||
|
|
||||||
httplib::Client cli(IP.substr(0, pos).c_str());
|
httplib::Client cli(IP.substr(0, pos).c_str());
|
||||||
cli.set_connection_timeout(std::chrono::seconds(10));
|
cli.set_connection_timeout(std::chrono::seconds(10));
|
||||||
|
cli.set_follow_location(true);
|
||||||
auto res = cli.Get(IP.substr(pos).c_str(), ProgressBar);
|
auto res = cli.Get(IP.substr(pos).c_str(), ProgressBar);
|
||||||
std::string Ret;
|
std::string Ret;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user