diff options
author | Kahrl <kahrl@gmx.net> | 2014-02-15 02:19:49 +0100 |
---|---|---|
committer | Kahrl <kahrl@gmx.net> | 2014-02-15 02:19:49 +0100 |
commit | c87316487840fd176662207acef4fb15286e32e8 (patch) | |
tree | 8f221faa29a107f9b3baf1e3f5204d618da98750 | |
parent | 31ec14afe2ec1791821e742d79b172bbebe43e03 (diff) | |
download | minetest-c87316487840fd176662207acef4fb15286e32e8.tar.gz minetest-c87316487840fd176662207acef4fb15286e32e8.tar.bz2 minetest-c87316487840fd176662207acef4fb15286e32e8.zip |
Accept any error response code for missing index.mth
-rw-r--r-- | src/clientmedia.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/clientmedia.cpp b/src/clientmedia.cpp index dcae44023..35074a113 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; |