diff options
author | godzilla80@gmx.net <> | 2010-05-23 06:42:54 +0000 |
---|---|---|
committer | godzilla80@gmx.net <> | 2010-05-23 06:42:54 +0000 |
commit | 0802beaf640fd56965ae87c606cd964e61c18f51 (patch) | |
tree | 1194c749131811f1b61cb3f7f4d8beff953a4cb7 /framework | |
parent | cdb7ea5ccbda68b47d5fe5b41ec9f1fd450a9c83 (diff) |
add second parameter to THttpResponse::appendHeader whether the header should replace a previous similar header, or add a second header of the same type
Diffstat (limited to 'framework')
-rw-r--r-- | framework/Web/THttpResponse.php | 5 |
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);
}
/**
|