Skip to content

Commit

Permalink
Merge pull request vadv#15 from mechamogera/proxyBugFix
Browse files Browse the repository at this point in the history
HTTP Proxy Bug
  • Loading branch information
vadv committed Feb 4, 2013
2 parents d01fc08 + ebce86d commit db676a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/zabbixapi/client.rb
Expand Up @@ -49,7 +49,7 @@ def message_json(body)
def http_request(body)
uri = URI.parse(@options[:url])

if @proxy_uri.nil?
unless @proxy_uri.nil?
http = Net::HTTP.Proxy(@proxy_host, @proxy_port, @proxy_user, @proxy_pass).new(uri.host, uri.port)
if uri.port == 443
http.use_ssl = true
Expand Down

0 comments on commit db676a1

Please sign in to comment.