Skip to content

Commit

Permalink
Update lib/puppet_x/bodeco/util.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Romain Tartière <romain@blogreen.org>
  • Loading branch information
alsar1980 and smortex committed Apr 17, 2023
1 parent f81fd25 commit 609f083
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/puppet_x/bodeco/util.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ def generate_request(uri)

request = Net::HTTP::Get.new(uri.request_uri, header)
@headers.each do |h|
h_split = h.split(':')
request[h_split[0].strip] = h_split[1].strip if h_split.length == 2
h_split = h.split(':', 2)
end
request.basic_auth(@username, @password) if @username && @password
request
Expand Down

0 comments on commit 609f083

Please sign in to comment.