Skip to content

Commit

Permalink
(FORGE-514) Follow redirects from the forge API
Browse files Browse the repository at this point in the history
  • Loading branch information
binford2k committed Oct 6, 2021
1 parent 8ef010b commit e802009
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/puppet_forge/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ def make_connection(url, adapter_args = nil, opts = {})
end

Faraday.new(url, options) do |builder|
builder.use FaradayMiddleware::FollowRedirects
builder.response(:json, :content_type => /\bjson$/, :parser_options => { :symbolize_names => true })
builder.response(:raise_error)
builder.use(:connection_failure)
Expand Down

0 comments on commit e802009

Please sign in to comment.