Skip to content

Commit

Permalink
Use a bogus rack.session env entry in case rack_csrf is being used im…
Browse files Browse the repository at this point in the history
…plicitly
  • Loading branch information
jeremyevans committed Jun 7, 2016
1 parent 274a9b7 commit 9874bd5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions demo-site/forme_demo.rb
Expand Up @@ -32,6 +32,9 @@ def demo(t, opts={})
end

route do |r|
# Use bogus session in case rack_csrf is being used implicitly
env['rack.session'] = {}

r.get do
r.is '' do
@page_title = 'Forme Demo Site'
Expand Down

0 comments on commit 9874bd5

Please sign in to comment.