diff options
Diffstat (limited to 'lib/yahns/http_client.rb')
-rw-r--r-- | lib/yahns/http_client.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/yahns/http_client.rb b/lib/yahns/http_client.rb index 8a341f9..d8b4c6e 100644 --- a/lib/yahns/http_client.rb +++ b/lib/yahns/http_client.rb @@ -1,8 +1,9 @@ # -*- encoding: binary -*- # Copyright (C) 2013-2015 all contributors <yahns-public@yhbt.net> # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt) +# frozen_string_literal: true class Yahns::HttpClient < Kgio::Socket # :nodoc: - NULL_IO = StringIO.new('') # :nodoc: + NULL_IO = StringIO.new.binmode # :nodoc: include Yahns::HttpResponse QEV_FLAGS = Yahns::Queue::QEV_RD # used by acceptor |