18794: Fix "check" command test.
[arvados.git] / apps / workbench / app / controllers / healthcheck_controller.rb
index 7afe4032a2c19f726465e8aae7b1f6cdf55dafc0..691bef8ee578bbd3beeb616906ac44a4df253631 100644 (file)
@@ -19,7 +19,7 @@ class HealthcheckController < ApplicationController
     mgmt_token = Rails.configuration.ManagementToken
     auth_header = request.headers['Authorization']
 
-    if !mgmt_token
+    if mgmt_token.empty?
       render :json => {:errors => "disabled"}, :status => 404
     elsif !auth_header
       render :json => {:errors => "authorization required"}, :status => 401