From 2c8eaacec79169f141105a42facdd04cf48e1087 Mon Sep 17 00:00:00 2001 From: Thomas Müller Date: Mon, 10 Aug 2015 21:33:50 +0200 Subject: Merge headers of ocs results --- lib/private/ocs/result.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/private/ocs') diff --git a/lib/private/ocs/result.php b/lib/private/ocs/result.php index 42b6166b823..78c0b3bdd6e 100644 --- a/lib/private/ocs/result.php +++ b/lib/private/ocs/result.php @@ -51,7 +51,7 @@ class OC_OCS_Result{ * @param int $code * @param null|string $message */ - public function __construct($data=null, $code=100, $message=null) { + public function __construct($data = null, $code = 100, $message = null, $headers = []) { if ($data === null) { $this->data = array(); } elseif (!is_array($data)) { @@ -61,6 +61,7 @@ class OC_OCS_Result{ } $this->statusCode = $code; $this->message = $message; + $this->headers = $headers; } /** -- cgit v1.2.3