lib/bulletware.rb in bullet-1.7.4 vs lib/bulletware.rb in bullet-1.7.5
- old
+ new
@@ -20,10 +20,10 @@
Bullet.log_notification(env['PATH_INFO'])
end
response_body ||= response.body
Bullet.end_request
no_browser_cache(headers) if Bullet.disable_browser_cache
- [status, headers, response_body]
+ [status, headers, [response_body]]
end
# fix issue if response's body is a Proc
def empty?(response)
(response.is_a?(Array) && response.empty?) || !response.body.is_a?(String) || response.body.empty?