reverse_merge is a rails method

This commit is contained in:
Oliver Morgan 2025-09-21 13:19:31 +01:00 committed by GitHub
parent 2fa03dd8af
commit b64ece5581
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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