X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/6c78b28f9f54664babc57a4b4372c502065ed5d1..9881b1dc0b51b0a5da6dfd92fbe3a903c7330e99:/apps/workbench/app/controllers/healthcheck_controller.rb diff --git a/apps/workbench/app/controllers/healthcheck_controller.rb b/apps/workbench/app/controllers/healthcheck_controller.rb index 7afe4032a2..691bef8ee5 100644 --- a/apps/workbench/app/controllers/healthcheck_controller.rb +++ b/apps/workbench/app/controllers/healthcheck_controller.rb @@ -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