mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
cleanup
This commit is contained in:
parent
64f70339d1
commit
f0a20b1a5e
1 changed files with 5 additions and 5 deletions
|
@ -144,11 +144,11 @@ module Sidekiq
|
||||||
m = middlewares
|
m = middlewares
|
||||||
|
|
||||||
::Rack::Builder.new do
|
::Rack::Builder.new do
|
||||||
use Rack::Static, :urls => ["/stylesheets", "/images", "/javascripts"],
|
use Rack::Static, urls: ["/stylesheets", "/images", "/javascripts"],
|
||||||
:root => ASSETS,
|
root: ASSETS,
|
||||||
:cascade => true,
|
cascade: true,
|
||||||
:header_rules => [
|
header_rules: [
|
||||||
[:all, {'Cache-Control' => 'public, max-age=86400'}],
|
[:all, {"Cache-Control" => "public, max-age=86400"}]
|
||||||
]
|
]
|
||||||
m.each { |middleware, block| use(*middleware, &block) }
|
m.each { |middleware, block| use(*middleware, &block) }
|
||||||
use Sidekiq::Web::CsrfProtection unless $TESTING
|
use Sidekiq::Web::CsrfProtection unless $TESTING
|
||||||
|
|
Loading…
Reference in a new issue