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 <[email protected]>
  • Loading branch information
alsar1980 and smortex committed Apr 17, 2023
1 parent f81fd25 commit 6149f5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet_x/bodeco/util.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def generate_request(uri)

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

0 comments on commit 6149f5a

Please sign in to comment.