aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2011-02-07 19:36:44 -0200
committerHisham Muhammad <hisham@gobolinux.org>2011-02-07 19:36:44 -0200
commit1cd08e36c153f0ed30c657b6ff0e7deb379bba39 (patch)
tree8ffecbd74e0d458d68c010250a2498880f2763bd
parentd3948a3a6dcf467f1201e9aab5211b990e72d8ec (diff)
downloadluarocks-1cd08e36c153f0ed30c657b6ff0e7deb379bba39.tar.gz
luarocks-1cd08e36c153f0ed30c657b6ff0e7deb379bba39.tar.bz2
luarocks-1cd08e36c153f0ed30c657b6ff0e7deb379bba39.zip
Fix bug of missing local declarations which resulted in downloads being "propagated" between calls.
-rw-r--r--src/luarocks/fs/lua.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/luarocks/fs/lua.lua b/src/luarocks/fs/lua.lua
index 3a547fe5..d9e717c1 100644
--- a/src/luarocks/fs/lua.lua
+++ b/src/luarocks/fs/lua.lua
@@ -490,6 +490,7 @@ local function http_request(url, http)
490 url_arg = url 490 url_arg = url
491 end 491 end
492 local res, status, headers, line = http.request(url_arg) 492 local res, status, headers, line = http.request(url_arg)
493 local content, err
493 if not res then 494 if not res then
494 err = status 495 err = status
495 elseif status ~= 200 then 496 elseif status ~= 200 then