summaryrefslogtreecommitdiff
path: root/framework/Web
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web')
-rw-r--r--framework/Web/THttpResponse.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/framework/Web/THttpResponse.php b/framework/Web/THttpResponse.php
index c15f2836..1e5540ab 100644
--- a/framework/Web/THttpResponse.php
+++ b/framework/Web/THttpResponse.php
@@ -511,11 +511,12 @@ class THttpResponse extends TModule implements ITextWriter
/**
* Sends a header.
* @param string header
+ * @param boolean whether the header should replace a previous similar header, or add a second header of the same type
*/
- public function appendHeader($value)
+ public function appendHeader($value, $replace=true)
{
Prado::trace("Sending header '$value'",'System.Web.THttpResponse');
- header($value);
+ header($value, $replace);
}
/**