提交 977317da 编写于 作者: J Joshua Peek

hack around CGI session close

上级 e9ae2b2f
......@@ -156,6 +156,10 @@ def status
end
def out(output = $stdout, &block)
# Nasty hack because CGI sessions are closed after the normal
# prepare! statement
set_cookies!
@block = block
@status = headers.delete("Status")
if [204, 304].include?(status.to_i)
......@@ -200,7 +204,7 @@ def prepare!
convert_language!
convert_expires!
set_status!
set_cookies!
# set_cookies!
end
private
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册