1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Ensure content-type is always set, fixes #3338

This commit is contained in:
Mike Perham 2017-02-01 10:51:35 -08:00
parent 749fe55029
commit 475865e613

View file

@ -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