lib/sidekiq/web/application.rb in sidekiq-6.1.1 vs lib/sidekiq/web/application.rb in sidekiq-6.1.2

- old
+ new

@@ -296,11 +296,11 @@ action.instance_exec env, &action.block ensure self.class.run_afters(app, action) end - resp = case resp + case resp when Array # redirects go here resp else # rendered content goes here @@ -311,11 +311,9 @@ "Content-Security-Policy" => CSP_HEADER } # we'll let Rack calculate Content-Length for us. [200, headers, [resp]] end - - resp end def self.helpers(mod = nil, &block) if block_given? WebAction.class_eval(&block)