Skip to content

Commit

Permalink
Checking userinfo with the uri method (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
kurotaky committed May 8, 2023
1 parent 3c3c806 commit dcac24b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/eth/client/http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def initialize(host)
@host = uri.host
@port = uri.port
@ssl = uri.scheme == "https"
if Regexp.new(":.*@.*:", Regexp::IGNORECASE).match host
if !(uri.user.nil? && uri.password.nil?)
@user = uri.user
@password = uri.password
@uri = URI("#{uri.scheme}://#{uri.user}:#{uri.password}@#{@host}:#{@port}#{uri.path}")
Expand Down

0 comments on commit dcac24b

Please sign in to comment.