13647: Merge branch 'master' into 13647-keepstore-config
[arvados.git] / services / api / app / controllers / arvados / v1 / healthcheck_controller.rb
index c12bc6e90c8f8bf68ce21b99f8bc658df1cf3510..6c3822437607ae0fd6dce94a7e20ea8731c04232 100644 (file)
@@ -19,7 +19,7 @@ class Arvados::V1::HealthcheckController < ApplicationController
     mgmt_token = Rails.configuration.ManagementToken
     auth_header = request.headers['Authorization']
 
-    if !mgmt_token
+    if mgmt_token == ""
       send_json ({"errors" => "disabled"}), status: 404
     elsif !auth_header
       send_json ({"errors" => "authorization required"}), status: 401