File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ def self.debug(&block)
42
42
43
43
def self . http_client ( agent_name = "Rack::OAuth2 (#{ VERSION } )" , &local_http_config )
44
44
Faraday . new ( headers : { user_agent : agent_name } ) do |faraday |
45
+ faraday . request :json
46
+ faraday . request :url_encoded
45
47
faraday . response :logger , Rack ::OAuth2 . logger if debugging?
46
48
faraday . adapter Faraday . default_adapter
47
49
local_http_config &.call ( faraday )
Original file line number Diff line number Diff line change @@ -74,11 +74,7 @@ def access_token!(*args)
74
74
params . merge! @grant . as_json
75
75
params . merge! options
76
76
handle_response do
77
- http_client . post (
78
- absolute_uri_for ( token_endpoint ) ,
79
- Util . compact_hash ( params ) . to_query ,
80
- headers
81
- )
77
+ http_client . post ( absolute_uri_for ( token_endpoint ) , Util . compact_hash ( params ) , headers )
82
78
end
83
79
end
84
80
You can’t perform that action at this time.
0 commit comments