diff options
Diffstat (limited to 'lib/yahns/http_context.rb')
-rw-r--r-- | lib/yahns/http_context.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/yahns/http_context.rb b/lib/yahns/http_context.rb index 1af41df..97a0f82 100644 --- a/lib/yahns/http_context.rb +++ b/lib/yahns/http_context.rb @@ -1,7 +1,6 @@ # -*- encoding: binary -*- # Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt) -require 'yahns/tiny_input' # subclasses of Yahns::HttpClient will class extend this @@ -61,6 +60,6 @@ module Yahns::HttpContext # :nodoc: def tmpio_for(len) len && len <= @client_body_buffer_size ? - Yahns::TinyInput.new("") : Yahns::TmpIO.new + StringIO.new("") : Yahns::TmpIO.new end end |