externals: Update cpp-httplib to latest

This commit is contained in:
Alexandre Bouvier 2023-02-18 23:24:04 +01:00
parent 89221ca7d5
commit 83afc12475
4 changed files with 4 additions and 4 deletions

View file

@ -71,7 +71,7 @@ struct Client::Impl {
const std::string& jwt_ = "", const std::string& username_ = "",
const std::string& token_ = "") {
if (cli == nullptr) {
cli = std::make_unique<httplib::Client>(host.c_str());
cli = std::make_unique<httplib::Client>(host);
}
if (!cli->is_valid()) {

View file

@ -76,7 +76,7 @@ void DiscordImpl::Update() {
// New Check for game cover
httplib::Client cli(game_cover_url);
if (auto res = cli.Head(fmt::format("/images/game/boxart/{}.png", icon_name).c_str())) {
if (auto res = cli.Head(fmt::format("/images/game/boxart/{}.png", icon_name))) {
if (res->status == 200) {
game_cover_url += fmt::format("/images/game/boxart/{}.png", icon_name);
} else {