class BadChunkingServlet

Public Instance Methods

do_GET(req, res) click to toggle source
# File lib/mechanize/test_case/bad_chunking_servlet.rb, line 2
  def do_GET req, res
    res.keep_alive = false if res.respond_to? :keep_alive=

    res['Transfer-Encoding'] = 'chunked'

    res.body = <<-BODY
a\r
0123456789\r
0\r
    BODY
  end