1
0
Fork 0
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:
Mike Perham 2020-06-03 10:23:15 -07:00
parent 111d9d5369
commit 1d40a3eda1

View file

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