MegaGlest Forum
MegaGlest => Bug reports => Topic started by: filux on 19 November 2014, 19:40:13
-
source of download was mods' centre
(http://i57.tinypic.com/r7ma9y.png)
-
Recently I found out that downloading this archive (and another one vbross too) even manually using curl I see same effect, so this is probably related with archive/format/name/how it is stored on the server and less probably is related with some bug in the curl.
-
This is due to the HTTP redirect involved in the downloads from Softcoders' website, how curl handles them and how MegaGlest interprets (lib)curls' output.
When curl encounters a HTTP redirect and follows it, it will report 100% download at the time it follows the redirect, then for the actual download it finishes the download and reports 100% again. What MG does there is that it displays the progress of the first "download" (the HTTP redirection), not the second one.
There are several ways to fix this:
- Make MegaGlest notice that a HTTP redirection is taking place, effectively ignoring download progress for this "download", but reporting that of the next one (unless it is another redirection).
- Make MegaGlest's curl not follow redirections, and change the URLs in the mod database to point to the direct download locations (which would break Softcoders' download statistics script for these resources).