Skip to content

Commit

Permalink
Fix Puppet::HTTP::Client example with system store
Browse files Browse the repository at this point in the history
The evolution of that part of the code has seen multiple iterations, and
the doc does not reflect the current usage so fix it.

While here, also fix the wrong variable name typo.
  • Loading branch information
smortex committed Oct 4, 2023
1 parent da7350d commit 72958f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ possible to additionally trust the system store when making HTTPS requests:

```ruby
client = Puppet::HTTP::Client.new
response = http.get("https://artifactory.example.com/java.tar.gz", trust_system_store: true)
response = client.get("https://artifactory.example.com/java.tar.gz", options: { include_system_store: true })
response.read_body do |data|
puts "Read #{data.bytes}"
end
Expand Down

0 comments on commit 72958f0

Please sign in to comment.