From 7b65bd024b5dbe14bdbf4b3b348223c6639bfe62 Mon Sep 17 00:00:00 2001 From: Hisham Date: Tue, 1 Nov 2016 11:45:05 -0200 Subject: Remove dead code --- src/luarocks/upload/api.lua | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/luarocks/upload/api.lua b/src/luarocks/upload/api.lua index 6df24569..fdc4ee63 100644 --- a/src/luarocks/upload/api.lua +++ b/src/luarocks/upload/api.lua @@ -147,8 +147,6 @@ function Api:request(url, params, post_params) if not self.config.key then return nil, "Must have API key before performing any actions." end - local body - local headers = {} if params and next(params) then url = url .. ("?" .. encode_query_string(params)) end @@ -215,7 +213,6 @@ function Api:request(url, params, post_params) warned_luasec = true end http_ok, http = pcall(require, "socket.http") - server = server:gsub("^https", "http") url = url:gsub("^https", "http") via = "luasocket" end -- cgit v1.2.3-55-g6feb