Sha256: 82ea2225956b192f8f9c2a3b9e4c5bf2a725d5b44f26d31b0860dff81d9b70e7

Contents?: true

Size: 346 Bytes

Versions: 15

Compression:

Stored size: 346 Bytes

Contents

class OneCookieNoSpacesServlet < WEBrick::HTTPServlet::AbstractServlet
  def do_GET(req, res)
    cookie = WEBrick::Cookie.new("foo", "bar")
    cookie.path = "/"
    cookie.expires = Time.now + 86400
    res.cookies << cookie.to_s.gsub(/; /, ';')
    res['Content-Type'] = "text/html"
    res.body = "<html><body>hello</body></html>"
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
mechanize-2.7.7 lib/mechanize/test_case/one_cookie_no_spaces_servlet.rb
husc-0.2.1 vendor/bundle/gems/mechanize-2.7.6/lib/mechanize/test_case/one_cookie_no_spaces_servlet.rb
husc-0.2.0 vendor/bundle/gems/mechanize-2.7.6/lib/mechanize/test_case/one_cookie_no_spaces_servlet.rb
husc-0.1.1 vendor/bundle/gems/mechanize-2.7.6/lib/mechanize/test_case/one_cookie_no_spaces_servlet.rb
husc-0.1.0 vendor/bundle/gems/mechanize-2.7.6/lib/mechanize/test_case/one_cookie_no_spaces_servlet.rb
mechanize-2.7.6 lib/mechanize/test_case/one_cookie_no_spaces_servlet.rb
mechanize-2.7.5 lib/mechanize/test_case/one_cookie_no_spaces_servlet.rb
mechanize-2.7.4 lib/mechanize/test_case/one_cookie_no_spaces_servlet.rb
mechanize-2.7.3 lib/mechanize/test_case/one_cookie_no_spaces_servlet.rb
mechanize-2.7.2 lib/mechanize/test_case/one_cookie_no_spaces_servlet.rb
mechanize-2.7.1 lib/mechanize/test_case/one_cookie_no_spaces_servlet.rb
mechanize-2.7.0 lib/mechanize/test_case/one_cookie_no_spaces_servlet.rb
mechanize-2.6.0 lib/mechanize/test_case/one_cookie_no_spaces_servlet.rb
mechanize-2.5.1 lib/mechanize/test_case/one_cookie_no_spaces_servlet.rb
mechanize-2.5 lib/mechanize/test_case/one_cookie_no_spaces_servlet.rb