Skip to content

Commit

Permalink
Fix Faraday warning about basic_auth deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
vnorguet committed Oct 6, 2021
1 parent b955d64 commit cba37f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/togglv8/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def self.open(username=nil, password=API_TOKEN, url=nil, opts={})
faraday.response :logger, Logger.new('faraday.log') if opts[:log]
faraday.adapter Faraday.default_adapter
faraday.headers = { "Content-Type" => "application/json" }
faraday.basic_auth username, password
faraday.request(:basic_auth, username, password)
end
end

Expand Down

0 comments on commit cba37f8

Please sign in to comment.