You can't use redirection with https and luasocket.
Fix:
Add redirect = false to request_constructor
Just after doing the http(s) request:
if response_code == 301 or response_code == 302 then
-- TODO: Add redirection loop detection
return PerformRequestHelper ( self , response_headers.location , method, headers, arguments, post_body)
end
You can't use redirection with https and luasocket.
Fix:
Add redirect = false to request_constructor
Just after doing the http(s) request:
if response_code == 301 or response_code == 302 then
-- TODO: Add redirection loop detection
return PerformRequestHelper ( self , response_headers.location , method, headers, arguments, post_body)
end