summaryrefslogtreecommitdiffstats
path: root/lib/private/api.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-08-07 13:12:43 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-08-07 13:12:43 +0200
commit0595c05200a97f70df572e14ed54289ca96621cd (patch)
treee1e34471edcec657b93a5458c54b2e18db94f41e /lib/private/api.php
parent43888bb9bf46928acfe79084377b96133609ef6c (diff)
downloadnextcloud-server-0595c05200a97f70df572e14ed54289ca96621cd.tar.gz
nextcloud-server-0595c05200a97f70df572e14ed54289ca96621cd.zip
Adding header support to class OC_OCS_Result
Diffstat (limited to 'lib/private/api.php')
-rw-r--r--lib/private/api.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/api.php b/lib/private/api.php
index 6823a19881f..fb2110471b2 100644
--- a/lib/private/api.php
+++ b/lib/private/api.php
@@ -350,6 +350,10 @@ class OC_API {
header('HTTP/1.0 401 Unauthorized');
}
+ foreach($result->getHeaders() as $name => $value) {
+ header($name . ': ' . $value);
+ }
+
if (self::isV2()) {
$statusCode = self::mapStatusCodes($result->getStatusCode());
if (!is_null($statusCode)) {