Sha256: a8624bd9822f8fd7827b08f5ac514880e29b7bbf9f8bb128e2be2ccb8dd11433

Contents?: true

Size: 654 Bytes

Versions: 7

Compression:

Stored size: 654 Bytes

Contents

=begin
    Copyright 2010-2014 Tasos Laskos <tasos.laskos@arachni-scanner.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

7 entries across 7 versions & 1 rubygems

Version Path
arachni-1.0.6 lib/arachni/ruby/webrick/cookie.rb
arachni-1.0.5 lib/arachni/ruby/webrick/cookie.rb
arachni-1.0.4 lib/arachni/ruby/webrick/cookie.rb
arachni-1.0.3 lib/arachni/ruby/webrick/cookie.rb
arachni-1.0.2 lib/arachni/ruby/webrick/cookie.rb
arachni-1.0.1 lib/arachni/ruby/webrick/cookie.rb
arachni-1.0 lib/arachni/ruby/webrick/cookie.rb