Sha256: 16ebc6826343e464a03db7f90d8dc295b7e8a95e53c5c2f9ae7fd175495edcc3

Contents?: true

Size: 639 Bytes

Versions: 5

Compression:

Stored size: 639 Bytes

Contents

=begin
    Copyright 2010-2022 Ecsypno <http://www.ecsypno.com>

    This file is part of the Arachni Framework project and is subject to
    redistribution and commercial restrictions. Please see the Arachni Framework
    web site for more information on licensing and terms of use.
=end

class WEBrick::Cookie
    attr_accessor :httponly

    class << self
        alias :old_parse_set_cookie :parse_set_cookie
    end

    def self.parse_set_cookie( str )
        cookie = old_parse_set_cookie( str )
        cookie.httponly = str.split( ';' ).map { |f| f.downcase.strip }.
            include?( 'httponly' )
        cookie
    end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
arachni-1.6.1.3 lib/arachni/ruby/webrick/cookie.rb
arachni-1.6.1.2 lib/arachni/ruby/webrick/cookie.rb
arachni-1.6.1.1 lib/arachni/ruby/webrick/cookie.rb
arachni-1.6.1 lib/arachni/ruby/webrick/cookie.rb
arachni-1.6.0 lib/arachni/ruby/webrick/cookie.rb