lib/async/http/response.rb in async-http-0.17.1 vs lib/async/http/response.rb in async-http-0.18.0
- old
+ new
@@ -33,9 +33,13 @@
def redirection?
status >= 300 && status < 400
end
+ def preserve_method?
+ status == 307 || status == 308
+ end
+
def failure?
status >= 400 && status < 600
end
include BufferedBody::Reader