{"action":"opened","issue":{"url":"https://api.github.com/repos/keplerproject/luarocks/issues/357","labels_url":"https://api.github.com/repos/keplerproject/luarocks/issues/357/labels{/name}","comments_url":"https://api.github.com/repos/keplerproject/luarocks/issues/357/comments","events_url":"https://api.github.com/repos/keplerproject/luarocks/issues/357/events","html_url":"https://github.com/keplerproject/luarocks/issues/357","id":69601221,"number":357,"title":"`luarocks upload` command is broken after domain change","user":{"login":"ignacio","id":22947,"avatar_url":"https://avatars.githubusercontent.com/u/22947?v=3","gravatar_id":"","url":"https://api.github.com/users/ignacio","html_url":"https://github.com/ignacio","followers_url":"https://api.github.com/users/ignacio/followers","following_url":"https://api.github.com/users/ignacio/following{/other_user}","gists_url":"https://api.github.com/users/ignacio/gists{/gist_id}","starred_url":"https://api.github.com/users/ignacio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignacio/subscriptions","organizations_url":"https://api.github.com/users/ignacio/orgs","repos_url":"https://api.github.com/users/ignacio/repos","events_url":"https://api.github.com/users/ignacio/events{/privacy}","received_events_url":"https://api.github.com/users/ignacio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-20T14:35:01Z","updated_at":"2015-04-20T14:35:01Z","closed_at":null,"body":"I've just created [this issue](https://github.com/leafo/luarocks-site/issues/50) in _luarocks-site_ repo but I think that the upload api should deal with redirects, which at present it does not.\r\n\r\nIt uses LuaSec unconditionally (if installed) which does not support redirects (although there is a fix by @Tieske in the pipeline).\r\nDisabling luasec makes it fallback to curl, but it fails at a different stage of the upload (with `Error: API Failed: Missing file`)\r\n"}}