lib/semantic_logger/appender/http.rb in semantic_logger-4.12.0 vs lib/semantic_logger/appender/http.rb in semantic_logger-4.13.0
- old
+ new
@@ -158,13 +158,13 @@
rescue IOError
nil
end
@http = if @proxy_uri
- Net::HTTP.new(server, port, @proxy_uri.host, @proxy_uri.port, @proxy_uri.user, @proxy_uri.password)
- else
- Net::HTTP.new(server, port, @proxy_url)
- end
+ Net::HTTP.new(server, port, @proxy_uri.host, @proxy_uri.port, @proxy_uri.user, @proxy_uri.password)
+ else
+ Net::HTTP.new(server, port, @proxy_url)
+ end
if @ssl_options
@http.methods.grep(/\A(\w+)=\z/) do |meth|
key = Regexp.last_match(1).to_sym
@ssl_options.key?(key) || next