mirror of
https://github.com/samsonjs/simple_oauth.git
synced 2026-03-25 08:45:54 +00:00
Pass query parameter tests, changing the url_params method to return an array.
This commit is contained in:
parent
83d3a6f2f6
commit
bd1153df5d
1 changed files with 2 additions and 2 deletions
|
|
@ -81,11 +81,11 @@ module SimpleOAuth
|
|||
end
|
||||
|
||||
def signature_params
|
||||
attributes.to_a + params.to_a + url_params.to_a
|
||||
attributes.to_a + params.to_a + url_params
|
||||
end
|
||||
|
||||
def url_params
|
||||
CGI.parse(@uri.query || '')
|
||||
CGI.parse(@uri.query || '').inject([]){|p,(k,vs)| p + vs.map{|v| [k, v] } }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue