lib/async/http/response.rb in async-http-0.33.2 vs lib/async/http/response.rb in async-http-0.34.0
- old
+ new
@@ -70,10 +70,10 @@
def server_failure?
status == 500
end
- def self.[](status, headers = {}, body = [])
+ def self.[](status, headers = [], body = nil)
body = Body::Buffered.wrap(body)
self.new(nil, status, nil, headers, body)
end