From 0c983433eac01325e9435dd61c448f1dbe4ba826 Mon Sep 17 00:00:00 2001 From: "alex@recordsonribs.com" Date: Tue, 21 Sep 2010 17:57:03 +0100 Subject: [PATCH] Updated for Sinatra > 0.9.4 as per http://www.gittr.com/index.php/archive/sinatra-cookie-handling-in-0-9-4/ --- main.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.rb b/main.rb index d6bf13e..a561e19 100644 --- a/main.rb +++ b/main.rb @@ -89,7 +89,7 @@ def auth end post '/auth' do - set_cookie(Blog.admin_cookie_key, Blog.admin_cookie_value) if params[:password] == Blog.admin_password + response.set_cookie(Blog.admin_cookie_key, Blog.admin_cookie_value) if params[:password] == Blog.admin_password redirect '/' end