diff options
-rw-r--r-- | src/luarocks/upload/api.lua | 3 |
1 files changed, 0 insertions, 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) | |||
147 | if not self.config.key then | 147 | if not self.config.key then |
148 | return nil, "Must have API key before performing any actions." | 148 | return nil, "Must have API key before performing any actions." |
149 | end | 149 | end |
150 | local body | ||
151 | local headers = {} | ||
152 | if params and next(params) then | 150 | if params and next(params) then |
153 | url = url .. ("?" .. encode_query_string(params)) | 151 | url = url .. ("?" .. encode_query_string(params)) |
154 | end | 152 | end |
@@ -215,7 +213,6 @@ function Api:request(url, params, post_params) | |||
215 | warned_luasec = true | 213 | warned_luasec = true |
216 | end | 214 | end |
217 | http_ok, http = pcall(require, "socket.http") | 215 | http_ok, http = pcall(require, "socket.http") |
218 | server = server:gsub("^https", "http") | ||
219 | url = url:gsub("^https", "http") | 216 | url = url:gsub("^https", "http") |
220 | via = "luasocket" | 217 | via = "luasocket" |
221 | end | 218 | end |