aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/net/net.cpp2
-rw-r--r--src/yuzu/updater/update_dialog.cpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/common/net/net.cpp b/src/common/net/net.cpp
index a4f681cd33..5c45e13701 100644
--- a/src/common/net/net.cpp
+++ b/src/common/net/net.cpp
@@ -241,7 +241,7 @@ std::optional<std::string> MakeRequest(const std::string& url, const std::string
response.status);
return {};
}
- if (!response.headers.contains("content-type")) {
+ if (!response.has_header("content-type")) {
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..f40fced357 100644
--- a/src/yuzu/updater/update_dialog.cpp
+++ b/src/yuzu/updater/update_dialog.cpp
@@ -74,6 +74,7 @@ UpdateDialog::~UpdateDialog() {
delete ui;
}
+// TODO: migrate to a net.cpp wrapper
void UpdateDialog::Download() {
const auto filename = QtCommon::Frontend::GetSaveFileName(
tr("New Version Location"),
@@ -161,7 +162,7 @@ void UpdateDialog::Download() {
QString::number(response.status)));
return;
}
- if (!response.headers.contains("content-type")) {
+ if (!response.has_header("content-type")) {
LOG_ERROR(Frontend, "GET to {}{} returned no content", m_asset.url, m_asset.path);
return;
}