lib/zabbix/client/client.rb in zabbix-client-0.0.3 vs lib/zabbix/client/client.rb in zabbix-client-0.0.4

- old
+ new

@@ -65,10 +65,10 @@ body = JSON.dump(body) proxy_user = @client.options[:proxy_user] proxy_password = @client.options[:proxy_password] - http = Net::HTTP.Proxy(nil, nil).new(@client.url.host, @client.url.port) + http = Net::HTTP.Proxy(proxy_user, proxy_password).new(@client.url.host, @client.url.port) if @client.url.scheme == 'https' http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE end