Sha256: 6a8e70a37d1fba24c2725656a766ad78678508108481dbc1292ea7ecd6f4d91d
Contents?: true
Size: 540 Bytes
Versions: 4
Compression:
Stored size: 540 Bytes
Contents
require_relative '../../spec_helper' describe WEBrick::Cookie do describe '.parse_set_cookie' do it 'should include 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
4 entries across 4 versions & 1 rubygems