We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f6fcb6 commit cfc3ed4Copy full SHA for cfc3ed4
lib/oauth2/client.rb
@@ -3,7 +3,10 @@
3
require 'faraday'
4
require 'logger'
5
6
-Faraday::Utils.default_space_encoding = '%20'
+if Faraday::Utils.respond_to?(:default_space_encoding)
7
+ # This setting doesn't exist in faraday 0.x
8
+ Faraday::Utils.default_space_encoding = '%20'
9
+end
10
11
module OAuth2
12
ConnectionError = Class.new(Faraday::ConnectionFailed)
0 commit comments