Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
epugh committed May 12, 2024
1 parent cae2abc commit 61efee3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/controllers/proxy_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ def fetch
uri = URI.parse(url_param)
url_without_path = "#{uri.scheme}://#{uri.host}"
url_without_path += ":#{uri.port}" unless uri.port.nil?





connection = Faraday.new(url: url_without_path) do |faraday|
# Configure the connection options, such as headers or middleware
Expand All @@ -50,7 +46,7 @@ def fetch
has_credentials = !uri.userinfo.nil?
if has_credentials
username, password = uri.userinfo.split(':')
faraday.headers['Authorization'] = 'Basic ' + Base64.strict_encode64("#{username}:#{password}")
faraday.headers['Authorization'] = "Basic #{Base64.strict_encode64("#{username}:#{password}")}"
end
faraday.adapter Faraday.default_adapter
end
Expand Down

0 comments on commit 61efee3

Please sign in to comment.