From 9f7277ee0821ba00460ef5e27757aa8b993b0ac3 Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Mon, 19 Jan 2015 11:56:02 +0100 Subject: [PATCH] feature #3336: Add proxy support to the zendesk client --- src/sunstone/routes/support.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sunstone/routes/support.rb b/src/sunstone/routes/support.rb index e8d37a143c..8836f3e912 100644 --- a/src/sunstone/routes/support.rb +++ b/src/sunstone/routes/support.rb @@ -55,7 +55,9 @@ helpers do # config.adapter = :patron # Merged with the default client options hash - # config.client_options = { :ssl => false } + if ENV['http_proxy'] + config.client_options = { :proxy => ENV['http_proxy'] } + end # When getting the error 'hostname does not match the server certificate' # use the API at https://yoursubdomain.zendesk.com/api/v2