diff --git a/lib/csv_file_from_public_host.rb b/lib/csv_file_from_public_host.rb index 718e0ab138a0..ad7b772ba6d0 100644 --- a/lib/csv_file_from_public_host.rb +++ b/lib/csv_file_from_public_host.rb @@ -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|