diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-08-07 13:12:43 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-08-07 13:12:43 +0200 |
commit | 0595c05200a97f70df572e14ed54289ca96621cd (patch) | |
tree | e1e34471edcec657b93a5458c54b2e18db94f41e /lib/private/api.php | |
parent | 43888bb9bf46928acfe79084377b96133609ef6c (diff) | |
download | nextcloud-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.php | 4 |
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)) { |