lib/rack/alive.rb in rack-alive-0.0.1 vs lib/rack/alive.rb in rack-alive-0.0.2
- old
+ new
@@ -17,12 +17,12 @@
protected
def alive_response(sucess)
if sucess
- [200, {'Content-Type' => 'text/plain'}, "true"]
+ [200, {'Content-Type' => 'text/plain'}, ["true"]]
else
- [500, {'Content-Type' => 'text/plain'}, "false"]
+ [500, {'Content-Type' => 'text/plain'}, ["false"]]
end
end
def alive?(env)
is_alive = @conditional_block.respond_to?(:call) ? @conditional_block.call(env) : true