Permalink
Browse files

improved request params

  • Loading branch information...
1 parent b1551ad commit 45004544de951f92ead692316a6756fd64be83c7 bartes committed Apr 2, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/oauth/request_proxy/rack_request.rb
@@ -29,12 +29,16 @@ def signature
protected
+ def process_request_params?
+ request.formats.to_s.downcase == 'application/x-www-form-urlencoded'
+ end
+
def query_params
request.GET
end
def request_params
- if request.content_type.to_s.downcase == 'application/x-www-form-urlencoded'
+ if process_request_params?
request.POST
else
{}

0 comments on commit 4500454

Please sign in to comment.