Sha256: 93c4ab7ae90a4fba24ac9b7fb18a6da04d4fcfa3cb8a3e0df9ef75f99a6f8719

Contents?: true

Size: 364 Bytes

Versions: 17

Compression:

Stored size: 364 Bytes

Contents

# frozen_string_literal: true
class QuotedValueCookieServlet < WEBrick::HTTPServlet::AbstractServlet
  def do_GET(req, res)
    cookie = WEBrick::Cookie.new("quoted", "\"value\"")
    cookie.path = "/"
    cookie.expires = Time.now + 86400
    res.cookies << cookie
    res['Content-Type'] = "text/html"
    res.body = "<html><body>hello</body></html>"
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
mechanize-2.14.0 lib/mechanize/test_case/quoted_value_cookie_servlet.rb
mechanize-2.13.0 lib/mechanize/test_case/quoted_value_cookie_servlet.rb
mechanize-2.12.2 lib/mechanize/test_case/quoted_value_cookie_servlet.rb
mechanize-2.12.1 lib/mechanize/test_case/quoted_value_cookie_servlet.rb
mechanize-2.12.0 lib/mechanize/test_case/quoted_value_cookie_servlet.rb
mechanize-2.11.0 lib/mechanize/test_case/quoted_value_cookie_servlet.rb
mechanize-2.10.1 lib/mechanize/test_case/quoted_value_cookie_servlet.rb
mechanize-2.10.0 lib/mechanize/test_case/quoted_value_cookie_servlet.rb
mechanize-2.9.2 lib/mechanize/test_case/quoted_value_cookie_servlet.rb
mechanize-2.9.1 lib/mechanize/test_case/quoted_value_cookie_servlet.rb
mechanize-2.9.0 lib/mechanize/test_case/quoted_value_cookie_servlet.rb
mechanize-2.8.5 lib/mechanize/test_case/quoted_value_cookie_servlet.rb
mechanize-2.8.4 lib/mechanize/test_case/quoted_value_cookie_servlet.rb
mechanize-2.8.3 lib/mechanize/test_case/quoted_value_cookie_servlet.rb
mechanize-2.8.2 lib/mechanize/test_case/quoted_value_cookie_servlet.rb
mechanize-2.8.1 lib/mechanize/test_case/quoted_value_cookie_servlet.rb
mechanize-2.8.0 lib/mechanize/test_case/quoted_value_cookie_servlet.rb