mirror of
https://github.com/brunoos/luasec.git
synced 2024-12-26 12:48:20 +01:00
fix silently redirecting
fixes #35 I suspect this will break a lot of existing code. Not nice, but probably for the better.
This commit is contained in:
parent
1ab6fac919
commit
dce7073e6a
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user