2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Merge pull request #9841 from abouvier/httplib-update

externals: Update cpp-httplib to latest
This commit is contained in:
liamwhite 2023-02-21 18:57:55 -05:00 committed by GitHub
commit ba05301e1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -241,7 +241,7 @@ endif()
if (ENABLE_WEB_SERVICE) if (ENABLE_WEB_SERVICE)
find_package(cpp-jwt 1.4 CONFIG) find_package(cpp-jwt 1.4 CONFIG)
find_package(httplib 0.11 MODULE) find_package(httplib 0.12 MODULE)
endif() endif()
if (YUZU_TESTS) if (YUZU_TESTS)

@ -1 +1 @@
Subproject commit 305a7abcb9b4e9e349843c6d563212e6c1bbbf21 Subproject commit 6d963fbe8d415399d65e94db7910bbd22fe3741c

View file

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

View file

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