lib/httpi/response.rb in httpi-0.7.2 vs lib/httpi/response.rb in httpi-0.7.3

- old
+ new

@@ -1,8 +1,9 @@ require "zlib" require "stringio" require "httpi/dime" +require "rack/utils" module HTTPI # = HTTPI::Response # @@ -13,10 +14,10 @@ SuccessfulResponseCodes = 200..299 # Initializer expects an HTTP response +code+, +headers+ and +body+. def initialize(code, headers, body) self.code = code.to_i - self.headers = headers + self.headers = Rack::Utils::HeaderHash.new(headers) self.raw_body = body end attr_accessor :code, :headers, :raw_body, :attachments