Sha256: 68229c575e95d0e995de2d4389f6f4fda353db43182806462bad4f2759fec13b

Contents?: true

Size: 309 Bytes

Versions: 4

Compression:

Stored size: 309 Bytes

Contents

module WWMD
  class Page

    # does this request have an authenticate header?
    def auth?
      return false if self.code != 401
      count = 0
      self.header_data.each do |i|
        if i[0] =~ /www-authenticate/i
          count += 1
        end
      end
      return (count > 0)
    end

  end
end

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
iZsh-wwmd-0.2.19 lib/wwmd/page/auth.rb
miketracy-wwmd-0.2.17 lib/wwmd/page/auth.rb
miketracy-wwmd-0.2.19 lib/wwmd/page/auth.rb
wwmd-0.2.20.3 lib/wwmd/page/auth.rb