Sha256: f64fbb4e3ae17d9c0d97aaeef741b4ff713e8713ee2cec65ee2cc8b8cdddb0d3

Contents?: true

Size: 253 Bytes

Versions: 15

Compression:

Stored size: 253 Bytes

Contents

class BadChunkingServlet < WEBrick::HTTPServlet::AbstractServlet
  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
end

Version data entries

15 entries across 15 versions & 2 rubygems

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