Skip to content

Commit 98faf13

Browse files
committed
make url-encoded the default
1 parent f399b3a commit 98faf13

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/rack/oauth2.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ def self.debug(&block)
4242

4343
def self.http_client(agent_name = "Rack::OAuth2 (#{VERSION})", &local_http_config)
4444
Faraday.new(headers: {user_agent: agent_name}) do |faraday|
45-
faraday.request :json
4645
faraday.request :url_encoded
46+
faraday.request :json
4747
faraday.response :logger, Rack::OAuth2.logger if debugging?
4848
faraday.adapter Faraday.default_adapter
4949
local_http_config&.call(faraday)
@@ -58,7 +58,6 @@ def self.http_config(&block)
5858
def self.reset_http_config!
5959
@@http_config = nil
6060
end
61-
6261
end
6362
end
6463

0 commit comments

Comments
 (0)