We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b6b236 commit aeb47a7Copy full SHA for aeb47a7
lib/ld-eventsource/client.rb
@@ -143,8 +143,8 @@ def initialize(uri,
143
:proxy_address => @proxy.host,
144
:proxy_port => @proxy.port,
145
}
146
- base_http_client_options["proxy"][:proxy_username] = @proxy.user unless @proxy.user.empty?
147
- base_http_client_options["proxy"][:proxy_password] = @proxy.password unless @proxy.password.empty?
+ base_http_client_options["proxy"][:proxy_username] = @proxy.user unless @proxy.user.nil?
+ base_http_client_options["proxy"][:proxy_password] = @proxy.password unless @proxy.password.nil?
148
end
149
150
options = http_client_options.is_a?(Hash) ? base_http_client_options.merge(http_client_options) : base_http_client_options
0 commit comments