Sha256: 74fe2e6b81c070e5bfbe2b66124bf68ff1748f3599ed0d6f3a7f3479a7579d6e
Contents?: true
Size: 534 Bytes
Versions: 1
Compression:
Stored size: 534 Bytes
Contents
require_relative '../../spec_helper' describe WEBrick::Cookie do describe '.parse_set_cookie' do it 'includes the httponly attribute' do str = "cookie2=val2; Expires=Thu, 01 Jan 1970 00:00:01 GMT; Path=/; Domain=.foo.com; HttpOnly" WEBrick::Cookie.parse_set_cookie( str ).httponly.should be_true str = "cookie2=val2; Expires=Thu, 01 Jan 1970 00:00:01 GMT; Path=/; Domain=.foo.com" WEBrick::Cookie.parse_set_cookie( str ).httponly.should be_false end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
arachni-0.4.2 | spec/arachni/ruby/webrick_spec.rb |