lib/excon/response.rb in excon-0.51.0 vs lib/excon/response.rb in excon-0.52.0
- old
+ new
@@ -1,5 +1,6 @@
+# frozen_string_literal: true
module Excon
class Response
attr_accessor :data
@@ -63,10 +64,10 @@
end until status = line[9, 3].to_i
reason_phrase = line[13..-3] # -3 strips the trailing "\r\n"
datum[:response] = {
- :body => '',
+ :body => String.new,
:cookies => [],
:host => datum[:host],
:headers => Excon::Headers.new,
:path => datum[:path],
:port => datum[:port],