-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTTP Redirection broken #7
Comments
just noticed the fix I advised above breaks with a GET request: it appends the query string again for each request. |
and then again; I notice that now the signature is broken; will have to do a completely new request. |
Do you have an example of such an OAuth api that does that? (I mean, returning 301 or 302 for a request). I never came across one. |
LivePerson at the moment I've got it working by adding
|
I think the best solution would be to add the redirect = false |
Ok, I'll take a look at it. If you have a pull request, that would be great. |
in the mean time before you have a proper fix just add the redirect = false. |
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
The text was updated successfully, but these errors were encountered: