Skip to content

Commit

Permalink
make url-encoded the default
Browse files Browse the repository at this point in the history
  • Loading branch information
nov committed Oct 8, 2022
1 parent f399b3a commit 98faf13
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/rack/oauth2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def self.debug(&block)

def self.http_client(agent_name = "Rack::OAuth2 (#{VERSION})", &local_http_config)
Faraday.new(headers: {user_agent: agent_name}) do |faraday|
faraday.request :json
faraday.request :url_encoded
faraday.request :json
faraday.response :logger, Rack::OAuth2.logger if debugging?
faraday.adapter Faraday.default_adapter
local_http_config&.call(faraday)
Expand All @@ -58,7 +58,6 @@ def self.http_config(&block)
def self.reset_http_config!
@@http_config = nil
end

end
end

Expand Down

0 comments on commit 98faf13

Please sign in to comment.