Skip to content

Commit

Permalink
Fixed typo in proxy attribute name
Browse files Browse the repository at this point in the history
  • Loading branch information
EtienneDepaulis committed Nov 4, 2018
1 parent a250e5d commit 5118803
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/fhir_client/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def set_no_auth
@use_basic_auth = false
@security_headers = {}
@client = RestClient
@client.proxy = proxy_url unless proxy_url.nil?
@client.proxy = proxy unless proxy.nil?
@client
end

Expand All @@ -116,7 +116,7 @@ def set_basic_auth(client, secret)
@use_oauth2_auth = false
@use_basic_auth = true
@client = RestClient
@client.proxy = proxy_url unless proxy_url.nil?
@client.proxy = proxy unless proxy.nil?
@client
end

Expand All @@ -128,7 +128,7 @@ def set_bearer_token(token)
@use_oauth2_auth = false
@use_basic_auth = true
@client = RestClient
@client.proxy = proxy_url unless proxy_url.nil?
@client.proxy = proxy unless proxy.nil?
@client
end

Expand All @@ -149,7 +149,7 @@ def set_oauth2_auth(client, secret, authorize_path, token_path, site = nil)
raise_errors: true
}
client = OAuth2::Client.new(client, secret, options)
client.connection.proxy(proxy_url) unless proxy_url.nil?
client.connection.proxy(proxy) unless proxy.nil?
@client = client.client_credentials.get_token
end

Expand Down

0 comments on commit 5118803

Please sign in to comment.