1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

Make session return an empty hash when Session support is turned off

This commit is contained in:
Markus Prinz 2008-04-07 23:43:01 +02:00
parent dc219f7ad0
commit ecb95f941e

View file

@ -602,7 +602,7 @@ module Sinatra
end
def session
@request.env['rack.session']
@request.env['rack.session'] || {}
end
private