Skip to content

Commit

Permalink
Make session return an empty hash when Session support is turned off
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Prinz committed Apr 7, 2008
1 parent dc219f7 commit ecb95f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sinatra.rb
Expand Up @@ -602,7 +602,7 @@ def complete(returned)
end

def session
@request.env['rack.session']
@request.env['rack.session'] || {}
end

private
Expand Down

0 comments on commit ecb95f9

Please sign in to comment.