From c7760b85f02b313099a01f77c4059dff2a57c545 Mon Sep 17 00:00:00 2001 From: lizzie Date: Tue, 18 Aug 2026 18:24:03 +0000 Subject: [PATCH] [common/net] fix build errors on Arch with cpp-httplib 0.52x Signed-off-by: lizzie --- src/common/net/net.cpp | 2 +- src/yuzu/updater/update_dialog.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/net/net.cpp b/src/common/net/net.cpp index a4f681cd33..4de0575a02 100644 --- a/src/common/net/net.cpp +++ b/src/common/net/net.cpp @@ -241,7 +241,7 @@ std::optional MakeRequest(const std::string& url, const std::string response.status); return {}; } - if (!response.headers.contains("content-type")) { + if (response.headers.find("content-type") == response.headers.end()) { LOG_ERROR(Common, "GET to {}{} returned no content", url, path); return {}; } diff --git a/src/yuzu/updater/update_dialog.cpp b/src/yuzu/updater/update_dialog.cpp index d5af18cbf1..5f929cc3d2 100644 --- a/src/yuzu/updater/update_dialog.cpp +++ b/src/yuzu/updater/update_dialog.cpp @@ -161,7 +161,7 @@ void UpdateDialog::Download() { QString::number(response.status))); return; } - if (!response.headers.contains("content-type")) { + if (response.headers.find("content-type") == response.headers.end()) { LOG_ERROR(Frontend, "GET to {}{} returned no content", m_asset.url, m_asset.path); return; }