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:
parent
749fe55029
commit
475865e613
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue