Skip to content

Commit 0e46f52

Browse files
author
Maciej Szlosarczyk
committed
Ensure that session cookie is always passed in hello route
1 parent 3a1f83c commit 0e46f52

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

apps/epp_proxy/priv/test_backend_app/epp_server.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ class EppServer < Roda
88

99
r.on "session" do
1010
r.get "hello" do
11-
render("session/hello")
11+
if r.cookies['session']
12+
render("session/hello")
13+
end
1214
end
1315

1416
r.post "login" do

0 commit comments

Comments
 (0)