Skip to content

Conversation

@ernie
Copy link
Contributor

@ernie ernie commented Jul 26, 2012

I ran into a situation recently in which oauth-ruby wasn't actually handling Rails-style nested parameters appropriately. The problem was that Net::HTTP only supports top-level params in its requests when set_form_data is used. Calling #to_params or #to_query on the Hash would cause the signature to fail validations. Using the normalize method from OAuth::Helper and setting the body and content_type directly (which is what set_form_data does) solves the problem.

Thanks!

@ernie
Copy link
Contributor Author

ernie commented Aug 13, 2012

Sorry to be a nuisance, but any word on this?

@ernie
Copy link
Contributor Author

ernie commented Aug 20, 2012

Trying one more time -- any chance of this getting merged into an official release? Thanks!

quirkey added a commit that referenced this pull request Sep 4, 2012
Fix nested hash params in Consumer#request posts
@quirkey quirkey merged commit f565250 into ruby-oauth:master Sep 4, 2012
galois17 pushed a commit to galois17/oauth-ruby that referenced this pull request Oct 25, 2013
Fix nested hash params in Consumer#request posts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants