Skip to content

Commit

Permalink
fix silently redirecting
Browse files Browse the repository at this point in the history
fixes lunarmodules#35

I suspect this will break a lot of existing code. Not nice, but probably for the better.
  • Loading branch information
Tieske committed Mar 8, 2015
1 parent 1ab6fac commit dce7073
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/https.lua
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,13 @@ local function request(url, body)
local stringrequest = type(url) == "string"
if stringrequest then
url = urlstring_totable(url, body, result_table)
url.redirect = false
else
url.url = default_https_port(url.url)
end
if http.PROXY or url.proxy then
return nil, "proxy not supported"
elseif url.redirect then
elseif url.redirect ~= false then
return nil, "redirect not supported"
elseif url.create then
return nil, "create function not permitted"
Expand Down

0 comments on commit dce7073

Please sign in to comment.