lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 03/21/2014 10:53 AM, Luiz Henrique de Figueiredo wrote:
How did you download them?
I downloaded them simply by clicking on the links in Chrome on CentOS Linux. Some friends using Chrome on Windows have also reported the same. I also have gotten the same result with Firefox.

However when I download the files via wget, they check out fine.

-------------------
$ wget http://www.lua.org/ftp/lua-5.2.3.tar.gz
--2014-03-21 10:58:27-- http://www.lua.org/ftp/lua-5.2.3.tar.gz
Resolving www.lua.org... 148.251.24.173, 2a01:4f8:201:620f::2001
Connecting to www.lua.org|148.251.24.173|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 251195 (245K) [application/gzip]
Saving to: “lua-5.2.3.tar.gz”

100%[======================================>] 251,195 324K/s in 0.8s

2014-03-21 10:58:28 (324 KB/s) - “lua-5.2.3.tar.gz” saved [251195/251195]

$ md5sum lua-5.2.3.tar.gz
dc7f94ec6ff15c985d2d6ad0f1b35654 lua-5.2.3.tar.gz
-------------------

I suspect that the web server is doing an extra gzip compression of the content if the browser presents an Accept-Encoding:gzip header. It looks like the server is responding with a Content-Encoding:gzip header, which means the browser should decompress it on the fly, but it looks like that's not happening for whatever reason. Disabling gzip compression of non-plain text MIME types on the server should fix the problem.

Ian