lib/httpi/response.rb in httpi-2.2.7 vs lib/httpi/response.rb in httpi-2.3.0
- old
+ new
@@ -22,10 +22,11 @@
self.code = code.to_i
self.headers = Rack::Utils::HeaderHash.new(headers)
self.raw_body = body
end
- attr_accessor :code, :headers, :raw_body, :attachments
+ attr_accessor :code, :headers, :raw_body
+ attr_writer :attachments
# Returns whether the HTTP response is considered successful.
def error?
!SuccessfulResponseCodes.include? code.to_i
end