ignacio/LuaOAuth — Issue #7: HTTP Redirection broken
Author: daurnimator
Created: 2012-01-02 07:03:55+00:00
State: open

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