diff options
author | Alexandre Bouvier <contact@amb.tf> | 2023-02-18 23:24:04 +0100 |
---|---|---|
committer | Alexandre Bouvier <contact@amb.tf> | 2023-02-21 20:55:37 +0100 |
commit | 83afc124759673af58435b8791dd357bf751642c (patch) | |
tree | 69c862d2fea91b6fd4eec0eb79686fe74460a524 | |
parent | Merge pull request #9834 from german77/reverted (diff) | |
download | yuzu-83afc124759673af58435b8791dd357bf751642c.tar yuzu-83afc124759673af58435b8791dd357bf751642c.tar.gz yuzu-83afc124759673af58435b8791dd357bf751642c.tar.bz2 yuzu-83afc124759673af58435b8791dd357bf751642c.tar.lz yuzu-83afc124759673af58435b8791dd357bf751642c.tar.xz yuzu-83afc124759673af58435b8791dd357bf751642c.tar.zst yuzu-83afc124759673af58435b8791dd357bf751642c.zip |
-rw-r--r-- | CMakeLists.txt | 2 | ||||
m--------- | externals/cpp-httplib | 0 | ||||
-rw-r--r-- | src/web_service/web_backend.cpp | 2 | ||||
-rw-r--r-- | src/yuzu/discord_impl.cpp | 2 |
4 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8896fe0be..10a3de9e2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -241,7 +241,7 @@ endif() if (ENABLE_WEB_SERVICE) find_package(cpp-jwt 1.4 CONFIG) - find_package(httplib 0.11 MODULE) + find_package(httplib 0.12 MODULE) endif() if (YUZU_TESTS) diff --git a/externals/cpp-httplib b/externals/cpp-httplib -Subproject 305a7abcb9b4e9e349843c6d563212e6c1bbbf2 +Subproject 6d963fbe8d415399d65e94db7910bbd22fe3741 diff --git a/src/web_service/web_backend.cpp b/src/web_service/web_backend.cpp index 12a7e4922..dff380cca 100644 --- a/src/web_service/web_backend.cpp +++ b/src/web_service/web_backend.cpp @@ -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()) { diff --git a/src/yuzu/discord_impl.cpp b/src/yuzu/discord_impl.cpp index de0c307d4..978ffef33 100644 --- a/src/yuzu/discord_impl.cpp +++ b/src/yuzu/discord_impl.cpp @@ -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 { |