From: Kahrl Date: Sat, 15 Feb 2014 01:19:49 +0000 (+0100) Subject: Accept any error response code for missing index.mth X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=c87316487840fd176662207acef4fb15286e32e8;p=zefram%2Fminetest%2Fminetest_engine.git Accept any error response code for missing index.mth --- diff --git a/src/clientmedia.cpp b/src/clientmedia.cpp index dcae4402..35074a11 100644 --- a/src/clientmedia.cpp +++ b/src/clientmedia.cpp @@ -315,8 +315,10 @@ void ClientMediaDownloader::remoteHashSetReceived( // For compatibility: If index.mth is not found, assume that the // server contains files named like the original files (not their sha1) - if (!fetchresult.succeeded && !fetchresult.timeout && - fetchresult.response_code == 404) { + // Do NOT check for any particular response code (e.g. 404) here, + // because different servers respond differently + + if (!fetchresult.succeeded && !fetchresult.timeout) { infostream << "Client: Enabling compatibility mode for remote " << "server \"" << remote->baseurl << "\"" << std::endl; remote->request_by_filename = true;