diff options
author | xue <> | 2006-04-18 13:18:53 +0000 |
---|---|---|
committer | xue <> | 2006-04-18 13:18:53 +0000 |
commit | 0beaf0e5126c537712372638b9b0902a8ef63472 (patch) | |
tree | 9eaf4d63225b5907f62dadfb40fa261660ed5ca2 /framework/Web/THttpResponse.php | |
parent | 4dba56d6709d495c8ded0b8e4fa2d6fdaa225cc0 (diff) |
Fixed a bug in sending headers when charset is set.
Diffstat (limited to 'framework/Web/THttpResponse.php')
-rw-r--r-- | framework/Web/THttpResponse.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Web/THttpResponse.php b/framework/Web/THttpResponse.php index f76218ca..3d297e0a 100644 --- a/framework/Web/THttpResponse.php +++ b/framework/Web/THttpResponse.php @@ -288,7 +288,7 @@ class THttpResponse extends TModule implements ITextWriter $charset=$this->getCharset();
if($charset==='' && ($globalization=$this->getApplication()->getGlobalization(false))!==null)
$charset=$globalization->getCharset();
- if($charset==='')
+ if($charset!=='')
{
$header='Content-Type: '.$this->getContentType().';charset='.$charset;
$this->appendHeader($header);
|