This file is indexed.

/usr/lib/ruby/vendor_ruby/mechanize/unauthorized_error.rb is in ruby-mechanize 2.7.2-1.

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
13
14
15
16
17
18
19
20
21
class Mechanize::UnauthorizedError < Mechanize::ResponseCodeError

  attr_reader :challenges

  def initialize page, challenges, message
    super page, message
    @challenges = challenges
  end

  def to_s
    out = super

    if @challenges then
      realms = @challenges.map { |challenge| challenge.realm_name }.join ', '
      out << " -- available realms: #{realms}"
    end

    out
  end

end