This commit is contained in:
Lion Kortlepel
2021-08-12 22:37:33 +02:00
committed by Lion
parent 59b1b45625
commit 003a8269aa
3 changed files with 13 additions and 9 deletions

View File

@@ -82,9 +82,8 @@ std::string Http::GET(const std::string& host, int port, const std::string& targ
if (status) {
*status = res.base().result_int();
}
if (ec)
throw beast::system_error { ec };
// ignore ec
// If we get here then the connection is closed gracefully
return std::string(res.body());