summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-rw-r--r--framework/Collections/TList.php2
-rw-r--r--framework/Collections/TMap.php5
-rw-r--r--framework/Web/THttpResponse.php8
3 files changed, 6 insertions, 9 deletions
diff --git a/framework/Collections/TList.php b/framework/Collections/TList.php
index 244eab0f..5b27a02e 100644
--- a/framework/Collections/TList.php
+++ b/framework/Collections/TList.php
@@ -30,7 +30,7 @@
* to determine the number of items in the list.
*
* To extend TList by doing additional operations with each addition or removal
- * operations, override {@link insertAt()}, and {@link removeAt()}.
+ * operation, override {@link insertAt()}, and {@link removeAt()}.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @version $Revision: $ $Date: $
diff --git a/framework/Collections/TMap.php b/framework/Collections/TMap.php
index 85da4f3c..28508e1d 100644
--- a/framework/Collections/TMap.php
+++ b/framework/Collections/TMap.php
@@ -28,11 +28,6 @@
* Note, count($map) will always return 1. You should use {@link getCount()}
* to determine the number of items in the map.
*
- * To extend TMap by doing additional operations with each added or removed item,
- * you can override {@link addedItem} and {@link removedItem}.
- * You can also override {@link canAddItem} and {@link canRemoveItem} to
- * control whether to add or remove a particular item.
- *
* @author Qiang Xue <qiang.xue@gmail.com>
* @version $Revision: $ $Date: $
* @package System.Collections
diff --git a/framework/Web/THttpResponse.php b/framework/Web/THttpResponse.php
index 582a3db3..5a3ff99d 100644
--- a/framework/Web/THttpResponse.php
+++ b/framework/Web/THttpResponse.php
@@ -65,7 +65,7 @@ class THttpResponse extends TModule implements ITextWriter
/**
* @var string content type
*/
- private $_contentType='text/html';
+ private $_contentType=null;
/**
* @var string character set, e.g. UTF-8
*/
@@ -315,9 +315,11 @@ class THttpResponse extends TModule implements ITextWriter
$charset=$globalization->getCharset();
if($charset!=='')
{
- $header='Content-Type: '.$this->getContentType().';charset='.$charset;
- $this->appendHeader($header);
+ $contentType=$this->_contentType===null?'text/html':$this->_contentType;
+ $this->appendHeader('Content-Type: '.$contentType.';charset='.$charset);
}
+ else if($this->_contentType!==null)
+ $this->appendHeader('Content-Type: '.$this->_contentType.';charset=UTF-8');
}
/**