mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-03 08:26:01 +00:00
log non-200 status codes
This commit is contained in:
parent
c0c3d6b30e
commit
eaeacbd8de
@ -81,7 +81,7 @@ std::string HTTP::Get(const std::string& IP) {
|
|||||||
Ret = res->body;
|
Ret = res->body;
|
||||||
} else {
|
} else {
|
||||||
WriteHttpDebug(cli, "GET", IP, res);
|
WriteHttpDebug(cli, "GET", IP, res);
|
||||||
error("Failed to GET '" + IP + "': " + res->reason + ", ssl verify = " + std::to_string(cli.get_openssl_verify_result()));
|
error("Failed to GET (status " + std::to_string(res->status) + ") '" + IP + "': " + res->reason + ", ssl verify = " + std::to_string(cli.get_openssl_verify_result()));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (isDownload) {
|
if (isDownload) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user