lib/geminabox/server.rb in geminabox-0.13.6 vs lib/geminabox/server.rb in geminabox-0.13.7
- old
+ new
@@ -1,8 +1,10 @@
module Geminabox
class Server < Sinatra::Base
enable :static, :methodoverride
+ use Rack::Session::Pool, :expire_after => 2592000
+ use Rack::Protection
def self.delegate_to_geminabox(*delegate_methods)
delegate_methods.each{|m| set m, Geminabox.send(m)}
end