aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-12-04 16:59:42 +0100
committerMorris Jobke <hey@morrisjobke.de>2014-12-04 16:59:42 +0100
commitb6975143ff03c12e8f996b6f9f3144c5c0f47b25 (patch)
treec19e955bf36bd3b0b016695cf14c2d191b19740f /lib
parentf3213571bb2609a7f279fd5254f872083b3ea91a (diff)
parentd2e8358da22aa4d7ecfae4a062a82f554845f42a (diff)
downloadnextcloud-server-b6975143ff03c12e8f996b6f9f3144c5c0f47b25.tar.gz
nextcloud-server-b6975143ff03c12e8f996b6f9f3144c5c0f47b25.zip
Merge pull request #12619 from owncloud/use-also-original-hea
Merge headers
Diffstat (limited to 'lib')
-rw-r--r--lib/public/appframework/controller.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/appframework/controller.php b/lib/public/appframework/controller.php
index 398304e6feb..00981df05ba 100644
--- a/lib/public/appframework/controller.php
+++ b/lib/public/appframework/controller.php
@@ -70,7 +70,7 @@ abstract class Controller {
$data->getData(),
$data->getStatus()
);
- $response->setHeaders($data->getHeaders());
+ $response->setHeaders(array_merge($data->getHeaders(), $response->getHeaders()));
return $response;
} else {
return new JSONResponse($data);