diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-04-03 07:54:18 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-04-03 07:54:18 +0000 |
commit | 0c632c6fd391546cab623644aecc0ed85b1363da (patch) | |
tree | c350862f9052d8ad431f61f9cb4b24e929d18b64 /lib/webrick/httprequest.rb | |
parent | 60f0e763a41636dd9284d4c0d56116fb7dfaae7d (diff) |
Revert r62966 and r62969
It breaks mswin's test-all
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/webrick/httprequest.rb')
-rw-r--r-- | lib/webrick/httprequest.rb | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/webrick/httprequest.rb b/lib/webrick/httprequest.rb index c40f7c16e4..b40bcb0d57 100644 --- a/lib/webrick/httprequest.rb +++ b/lib/webrick/httprequest.rb @@ -258,32 +258,6 @@ module WEBrick end ## - # Prepares the HTTPRequest object for use as the - # source for IO.copy_stream - - def body_reader - @body_tmp = [] - @body_rd = Fiber.new do - body do |buf| - @body_tmp << buf - Fiber.yield - end - end - @body_rd.resume # grab the first chunk and yield - self - end - - # for IO.copy_stream. Note: we may return a larger string than +size+ - # here; but IO.copy_stream does not care. - def readpartial(size, buf = ''.b) # :nodoc - res = @body_tmp.shift or raise EOFError, 'end of file reached' - buf.replace(res) - res.clear - @body_rd.resume # get more chunks - buf - end - - ## # Request query as a Hash def query |