lib/protocol/http/response.rb in protocol-http-0.16.1 vs lib/protocol/http/response.rb in protocol-http-0.16.2
- old
+ new
@@ -60,9 +60,13 @@
def redirection?
@status and @status >= 300 && @status < 400
end
+ def not_modified?
+ @status == 304
+ end
+
def preserve_method?
@status == 307 || @status == 308
end
def failure?