diff options
Diffstat (limited to 'framework/Web')
-rw-r--r-- | framework/Web/THttpResponse.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/Web/THttpResponse.php b/framework/Web/THttpResponse.php index d64a82af..a8c3777a 100644 --- a/framework/Web/THttpResponse.php +++ b/framework/Web/THttpResponse.php @@ -265,7 +265,8 @@ class THttpResponse extends TModule implements ITextWriter */
public function redirect($url)
{
- $this->getApplication()->onExitApplication();
+ if(!$this->getApplication()->getRequestCompleted())
+ $this->getApplication()->onEndRequest();
header('Location:'.$url);
exit();
}
|