From: <nul...@cl...> - 2010-12-24 05:25:17
|
KAKUTANI Shintaro 2010-11-26 18:03:41 +0000 (Fri, 26 Nov 2010) New Revision: c15d95d21926b416fd0bee5f5a4f69615f43846d Log: tweak Modified files: tdiary/dispatcher.rb Modified: tdiary/dispatcher.rb (+2 -2) =================================================================== --- tdiary/dispatcher.rb 2010-11-26 17:58:32 +0000 (978bbd7) +++ tdiary/dispatcher.rb 2010-11-26 18:03:41 +0000 (70fbedf) @@ -105,7 +105,6 @@ module TDiary #'Location' => $!.path 'Content-Type' => 'text/html', } - head['cookie'] = tdiary.cookies if tdiary && tdiary.cookies.size > 0 body = %Q[ <html> <head> @@ -114,6 +113,7 @@ module TDiary </head> <body>Wait or <a href="#{$!.path}">Click here!</a></body> </html>] + head['cookie'] = tdiary.cookies if tdiary && tdiary.cookies.size > 0 # TODO return code should be 302? (current behaviour returns 200) TDiary::Response.new( body, 200, head ) end @@ -190,7 +190,6 @@ module TDiary #'Location' => $!.path 'Content-Type' => 'text/html', } - head['cookie'] = tdiary.cookies if tdiary.cookies.size > 0 body = %Q[ <html> <head> @@ -199,6 +198,7 @@ module TDiary </head> <body>Wait or <a href="#{$!.path}">Click here!</a></body> </html>] + head['cookie'] = tdiary.cookies if tdiary.cookies.size > 0 # TODO return code should be 302? (current behaviour returns 200) TDiary::Response.new( body, 200, head ) end |