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:
parent
dc219f7ad0
commit
ecb95f941e
1 changed files with 1 additions and 1 deletions
|
@ -602,7 +602,7 @@ module Sinatra
|
|||
end
|
||||
|
||||
def session
|
||||
@request.env['rack.session']
|
||||
@request.env['rack.session'] || {}
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Reference in a new issue