follow redirects if present

This commit is contained in:
Anonymous275 committed 2022-09-24 00:37:04 +03:00
1 parent f62f44d4c0
commit 480a7d038f
1 file changed
+1
+1
View File
@@ -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;