Use middleware Rack::ContentLength
This commit is contained in:
parent
25d7fc96d0
commit
03dd9f9b50
1 changed files with 1 additions and 0 deletions
|
@ -22,6 +22,7 @@ module Diversipub
|
|||
def builder
|
||||
@builder ||= Rack::Builder.new.tap do |builder|
|
||||
builder.use Rack::Head
|
||||
builder.use Rack::ContentLength
|
||||
builder.use Rack::Static, **rack_static_kwargs
|
||||
builder.use Rack::Protection, except: %i[session_hijacking]
|
||||
builder.run rest
|
||||
|
|
Loading…
Add table
Reference in a new issue