Skip to content

Commit

Permalink
Fix basic auth not working with Faraday.request, using Faraday.basic_…
Browse files Browse the repository at this point in the history
…auth instead
  • Loading branch information
gloaec authored and amro committed Sep 21, 2021
1 parent 8ecb50f commit 7512868
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/gibbon/api_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ def rest_client
if @request_builder.debug
faraday.response :logger, @request_builder.logger, bodies: true
end
faraday.request :basic_auth, 'apikey', self.api_key
faraday.basic_auth 'apikey', self.api_key
end

client
end

Expand Down

0 comments on commit 7512868

Please sign in to comment.