mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-04 00:00:37 -04:00
reverse_merge is a rails method
This commit is contained in:
parent
2fa03dd8af
commit
b64ece5581
@ -127,7 +127,7 @@ module HTTPX
|
||||
grant_type = oauth_session.grant_type
|
||||
|
||||
headers = {}
|
||||
form_post = { "grant_type" => grant_type, "scope" => Array(oauth_session.scope).join(" ") }.reverse_merge(oauth_session.token_endpoint_form_post).compact
|
||||
form_post = oauth_session.token_endpoint_form_post.merge({ "grant_type" => grant_type, "scope" => Array(oauth_session.scope).join(" ") }).compact
|
||||
|
||||
# auth
|
||||
case oauth_session.token_endpoint_auth_method
|
||||
|
Loading…
x
Reference in New Issue
Block a user