lib/elevate/http/response.rb in elevate-0.6.0 vs lib/elevate/http/response.rb in elevate-0.7.0

- old
+ new

@@ -7,18 +7,17 @@ def initialize @body = nil @headers = nil @status_code = nil @error = nil - @raw_body = nil + @raw_body = NSMutableData.alloc.init @url = nil end # Appends a chunk of data to the body. # # @api private def append_data(data) - @raw_body ||= NSMutableData.alloc.init @raw_body.appendData(data) end # Returns the body of the response. #