mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Ensure that the Content-Length middleware is included even if sessions are disabled
This commit is contained in:
parent
111d9d5369
commit
1d40a3eda1
1 changed files with 1 additions and 2 deletions
|
@ -160,9 +160,8 @@ module Sidekiq
|
|||
end
|
||||
|
||||
s = sessions
|
||||
return unless s
|
||||
|
||||
unless using? ::Rack::Session::Cookie
|
||||
if s && !using?(::Rack::Session::Cookie)
|
||||
unless (secret = Web.session_secret)
|
||||
require "securerandom"
|
||||
secret = SecureRandom.hex(64)
|
||||
|
|
Loading…
Reference in a new issue