X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ad25d712525293ce4f95f5a059b390036ec60dc3..45cc809dfeab1d603e80cec3d44770d7f5a7c8ae:/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