改进Response类的send方法 当为重定向的时候不清空当次有效数据

This commit is contained in:
thinkphp
2016-12-06 16:42:32 +08:00
parent 7ce4d935f6
commit 0788e048a7

View File

@@ -133,8 +133,10 @@ class Response
Hook::listen('response_end', $this); Hook::listen('response_end', $this);
// 清空当次请求有效的数据 // 清空当次请求有效的数据
if (!($this instanceof RedirectResponse)) {
Session::flush(); Session::flush();
} }
}
/** /**
* 处理数据 * 处理数据