diff --git a/lib/sidekiq/web/application.rb b/lib/sidekiq/web/application.rb index 56c13979..a48a7307 100644 --- a/lib/sidekiq/web/application.rb +++ b/lib/sidekiq/web/application.rb @@ -281,7 +281,7 @@ module Sidekiq when :json { "Content-Type" => "application/json", "Cache-Control" => "no-cache" } when String - { "Content-Type" => action.type, "Cache-Control" => "no-cache" } + { "Content-Type" => (action.type || "text/html"), "Cache-Control" => "no-cache" } else { "Content-Type" => "text/html", "Cache-Control" => "no-cache" } end