diff options
Diffstat (limited to 'lib/public/appframework/http/response.php')
-rw-r--r-- | lib/public/appframework/http/response.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/public/appframework/http/response.php b/lib/public/appframework/http/response.php index 20e936bb860..354911fee21 100644 --- a/lib/public/appframework/http/response.php +++ b/lib/public/appframework/http/response.php @@ -93,7 +93,7 @@ class Response { */ public function addHeader($name, $value) { $name = trim($name); // always remove leading and trailing whitespace - // to be able to reliably check for security + // to be able to reliably check for security // headers if(is_null($value)) { @@ -107,6 +107,18 @@ class Response { /** + * Set the headers + * @param array key value header pairs + * @return Response Reference to this object + */ + public function setHeaders($headers) { + $this->headers = $headers; + + return $this; + } + + + /** * Returns the set headers * @return array the headers */ |