Loading lib/labkit/tracing/open_telemetry_factory.rb +4 −2 Original line number Diff line number Diff line Loading @@ -123,10 +123,12 @@ module Labkit parsed = URI.parse(endpoint) headers = {} # add basic auth header only when both user and password are setup correctly user = parsed.user password = parsed.password headers["Authorization"] = "Basic #{Base64.strict_encode64("#{user}:#{password}")}" if user.present? && password.present? if user.present? && password.present? credentials = Base64.strict_encode64("#{CGI.unescape(user)}:#{CGI.unescape(password)}") headers["Authorization"] = "Basic #{credentials}" end headers end Loading Loading
lib/labkit/tracing/open_telemetry_factory.rb +4 −2 Original line number Diff line number Diff line Loading @@ -123,10 +123,12 @@ module Labkit parsed = URI.parse(endpoint) headers = {} # add basic auth header only when both user and password are setup correctly user = parsed.user password = parsed.password headers["Authorization"] = "Basic #{Base64.strict_encode64("#{user}:#{password}")}" if user.present? && password.present? if user.present? && password.present? credentials = Base64.strict_encode64("#{CGI.unescape(user)}:#{CGI.unescape(password)}") headers["Authorization"] = "Basic #{credentials}" end headers end Loading