This file is indexed.

/usr/lib/ruby/vendor_ruby/faraday/request/basic_authentication.rb is in ruby-faraday 0.9.2-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
require 'base64'

module Faraday
  class Request::BasicAuthentication < Request.load_middleware(:authorization)
    # Public
    def self.header(login, pass)
      value = Base64.encode64([login, pass].join(':'))
      value.gsub!("\n", '')
      super(:Basic, value)
    end
  end
end