Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

response.body may be an instance of Rack::Response

  • Loading branch information...
commit bc64732be993350b9dab79366f9be6b5bbaa3660 1 parent 67ce1db
@flyerhzm authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  lib/bullet/rack.rb
View
3  lib/bullet/rack.rb
@@ -28,8 +28,7 @@ def call(env)
def empty?(response)
# response may be ["Not Found"], ["Move Permanently"], etc.
(response.is_a?(Array) && response.size <= 1) ||
- !response.respond_to?(:body) ||
- !response.body.is_a?(String) || response.body.empty?
+ !response.respond_to?(:body) || response.body.empty?
end
# if send file?
Please sign in to comment.
Something went wrong with that request. Please try again.