Skip to content

Commit

Permalink
Fixes #36861 - fix username and password definition into request_params
Browse files Browse the repository at this point in the history
  • Loading branch information
jpasqualetto committed Oct 25, 2023
1 parent 586f2fe commit 06d7d31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/lib/katello/repo_discovery.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ def docker_search
url: "#{@uri}v1/search?q=#{@search}"
}

request_params[:headers][:user] = @upstream_username unless @upstream_username.empty?
request_params[:headers][:password] = @upstream_password unless @upstream_password.empty?
request_params[:user] = @upstream_username unless @upstream_username.empty?
request_params[:password] = @upstream_password unless @upstream_password.empty?
request_params[:proxy] = proxy_uri if proxy

begin
Expand Down

0 comments on commit 06d7d31

Please sign in to comment.