Skip to content

Commit

Permalink
DE-68: client option for proxy (#232)
Browse files Browse the repository at this point in the history
* mailgun 1.2.4 (#229)

* DE-73: default content-type (#216)

* DE-73: default content-type

* DE-73: refactor

* DE-62: reset recipient_variables (#218)

* DE-64: set single track opens-clicks (#219)

* DE-67: accept frozen mailgun options to message body (#221)

* DE-71: fix parse addres when full_name is nil (#222)

* update gem version

* fixes batch add unsubscribes and adds test (#187)

* update version to 1.2.3

* DE-56: ignore mime-version header (#225)

* DE-53: allow string values in custom variables (#226)

* DE-86: update mailgun rails load (#227)

* DE-81: fail if domain is missing (#228)

* update version to 1.2.4

Co-authored-by: Lukas Barry <LukasBBarry@gmail.com>

* DE-68: client option for proxy

* DE-68: fix proxy_url

Co-authored-by: Lukas Barry <LukasBBarry@gmail.com>
  • Loading branch information
Petro Smachylo and LukasBarry authored Apr 15, 2021
1 parent 2f4295b commit 4a5dcff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/mailgun/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ def initialize(api_key = Mailgun.api_key,
api_version = 'v3',
ssl = true,
test_mode = false,
timeout = nil)
timeout = nil,
proxy_url = nil)

rest_client_params = {
user: 'api',
Expand All @@ -25,6 +26,7 @@ def initialize(api_key = Mailgun.api_key,
rest_client_params[:timeout] = timeout if timeout

endpoint = endpoint_generator(api_host, api_version, ssl)
RestClient.proxy = proxy_url
@http_client = RestClient::Resource.new(endpoint, rest_client_params)
@test_mode = test_mode
end
Expand Down

0 comments on commit 4a5dcff

Please sign in to comment.