mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Accept any error response code for missing index.mth
This commit is contained in:
parent
31ec14afe2
commit
c873164878
1 changed files with 4 additions and 2 deletions
|
@ -315,8 +315,10 @@ void ClientMediaDownloader::remoteHashSetReceived(
|
||||||
// For compatibility: If index.mth is not found, assume that the
|
// For compatibility: If index.mth is not found, assume that the
|
||||||
// server contains files named like the original files (not their sha1)
|
// server contains files named like the original files (not their sha1)
|
||||||
|
|
||||||
if (!fetchresult.succeeded && !fetchresult.timeout &&
|
// Do NOT check for any particular response code (e.g. 404) here,
|
||||||
fetchresult.response_code == 404) {
|
// because different servers respond differently
|
||||||
|
|
||||||
|
if (!fetchresult.succeeded && !fetchresult.timeout) {
|
||||||
infostream << "Client: Enabling compatibility mode for remote "
|
infostream << "Client: Enabling compatibility mode for remote "
|
||||||
<< "server \"" << remote->baseurl << "\"" << std::endl;
|
<< "server \"" << remote->baseurl << "\"" << std::endl;
|
||||||
remote->request_by_filename = true;
|
remote->request_by_filename = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue