Skip to content

Commit

Permalink
Use Faraday 2 API for basic auth
Browse files Browse the repository at this point in the history
The API changed and this was producing an error.
  • Loading branch information
kevindew committed Apr 19, 2022
1 parent 4d6853b commit ca9ecae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/csv_file_from_public_host.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def self.csv_response(path, env: ENV)
basic_auth_credentials = env["BASIC_AUTH_CREDENTIALS"].split(":")
basic_auth_user = basic_auth_credentials[0]
basic_auth_password = basic_auth_credentials[1]
connection.basic_auth(basic_auth_user, basic_auth_password)
connection.request(:authorization, :basic, basic_auth_user, basic_auth_password)
end

connection.get(Addressable::URI.escape(path)) do |req|
Expand Down

0 comments on commit ca9ecae

Please sign in to comment.