lib/httpi/response.rb in httpi-0.4.1 vs lib/httpi/response.rb in httpi-0.5.0

- old
+ new

@@ -11,10 +11,10 @@ # Range of HTTP response codes considered to be successful. SuccessfulResponseCodes = 200..299 # Initializer expects an HTTP response +code+, +headers+ and +body+. def initialize(code, headers, body) - self.code = code + self.code = code.to_i self.headers = headers self.raw_body = body end attr_accessor :code, :headers, :raw_body