mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-11-01 11:58:19 +00:00
[common/net] fix build errors on Arch with cpp-httplib 0.52x
Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
@@ -241,7 +241,7 @@ std::optional<std::string> MakeRequest(const std::string& url, const std::string
|
|||||||
response.status);
|
response.status);
|
||||||
return {};
|
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);
|
LOG_ERROR(Common, "GET to {}{} returned no content", url, path);
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ void UpdateDialog::Download() {
|
|||||||
QString::number(response.status)));
|
QString::number(response.status)));
|
||||||
return;
|
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);
|
LOG_ERROR(Frontend, "GET to {}{} returned no content", m_asset.url, m_asset.path);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user