mirror of
https://github.com/brunoos/luasec.git
synced 2025-05-01 20:56:44 +02:00
Compare commits
2 Commits
c8da2e667e
...
4c86241cd3
Author | SHA1 | Date | |
---|---|---|---|
|
4c86241cd3 | ||
|
dce7073e6a |
@ -118,12 +118,13 @@ local function request(url, body)
|
|||||||
local stringrequest = type(url) == "string"
|
local stringrequest = type(url) == "string"
|
||||||
if stringrequest then
|
if stringrequest then
|
||||||
url = urlstring_totable(url, body, result_table)
|
url = urlstring_totable(url, body, result_table)
|
||||||
|
url.redirect = false
|
||||||
else
|
else
|
||||||
url.url = default_https_port(url.url)
|
url.url = default_https_port(url.url)
|
||||||
end
|
end
|
||||||
if http.PROXY or url.proxy then
|
if http.PROXY or url.proxy then
|
||||||
return nil, "proxy not supported"
|
return nil, "proxy not supported"
|
||||||
elseif url.redirect then
|
elseif url.redirect ~= false then
|
||||||
return nil, "redirect not supported"
|
return nil, "redirect not supported"
|
||||||
elseif url.create then
|
elseif url.create then
|
||||||
return nil, "create function not permitted"
|
return nil, "create function not permitted"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user