lib/acter/response.rb in acter-0.1.0 vs lib/acter/response.rb in acter-0.1.1

- old
+ new

@@ -2,10 +2,10 @@ module Acter class Response def initialize(status, headers, body) @status = status - @success = (200..299).include?(status[/\d+/]) + @success = (200..299).include?(status[/\d+/].to_i) @headers = headers.sort.map {|a| a.join(": ") } @body = case body when String @body_is_json = false body