diff --git a/src/Network/Http.cpp b/src/Network/Http.cpp index 0ea4b95..e9341ea 100755 --- a/src/Network/Http.cpp +++ b/src/Network/Http.cpp @@ -31,6 +31,7 @@ std::string HTTP::Get(const std::string &IP) { httplib::Client cli(IP.substr(0, pos).c_str()); cli.set_connection_timeout(std::chrono::seconds(10)); + cli.set_follow_location(true); auto res = cli.Get(IP.substr(pos).c_str(), ProgressBar); std::string Ret;