Skip to content

Commit

Permalink
Merge pull request #92 from binford2k/follow_redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
caseywilliams authored Oct 7, 2021
2 parents 8ef010b + e802009 commit dbf763e
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 dbf763e

Please sign in to comment.