Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
illuna-minetest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Illuna-Minetest
illuna-minetest
Commits
c8731648
Commit
c8731648
authored
11 years ago
by
Kahrl
Browse files
Options
Downloads
Patches
Plain Diff
Accept any error response code for missing index.mth
parent
31ec14af
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/clientmedia.cpp
+4
-2
4 additions, 2 deletions
src/clientmedia.cpp
with
4 additions
and
2 deletions
src/clientmedia.cpp
+
4
−
2
View file @
c8731648
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment