luarocks / luarocks-site

LuaRocks website and module host
http://luarocks.org
176 stars 36 forks source link

Manifest zip URLs returning unzipped data #78

Closed mwild1 closed 8 years ago

mwild1 commented 8 years ago

luarocks checks for a version of the manifest file with a '.zip' extension. Currently luarocks.org seems to be serving uncompressed data at these URLs for per-user manifests, which breaks luarocks.

For example:

~$ HEAD http://luarocks.org/manifests/mattj/manifest-5.1.zip
200 OK
Connection: close
Date: Wed, 06 Jan 2016 18:45:52 GMT
Server: nginx/1.6.3
Content-Type: text/x-lua
Client-Date: Wed, 06 Jan 2016 18:45:52 GMT

luarocks tries to decompress the file, but fails, leading to:

~$ sudo luarocks install verse --server=http://luarocks.org/manifests/mattj
Warning: Failed searching manifest: Failed extracting manifest file
leafo commented 8 years ago

should be fixed when we resolve #77, we're accidentally returning 200 for a .zip request to the server.

leafo commented 8 years ago

fixed now