Sha256: 272ca0a82ffee924ac4348e79107e427605ac1df888bc16ba5838a5d1becaa3e

Contents?: true

Size: 283 Bytes

Versions: 15

Compression:

Stored size: 283 Bytes

Contents

# frozen_string_literal: true
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 & 1 rubygems

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