diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-10-28 16:34:04 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-10-29 09:43:47 +0100 |
commit | 0696099bad56727d96c60f6221fe02dc7c71f511 (patch) | |
tree | 5c4784f13481c73950784eca881cc410659c5450 /lib/private/appframework/http | |
parent | c93ddf77b9e75b9e38764ad4360d82600eae3096 (diff) | |
download | nextcloud-server-0696099bad56727d96c60f6221fe02dc7c71f511.tar.gz nextcloud-server-0696099bad56727d96c60f6221fe02dc7c71f511.zip |
add dataresponse
fix docstrings
adjust copyright date
another copyright date update
another header update
implement third headers argument, fix indention, fix docstrings
fix docstrings
Diffstat (limited to 'lib/private/appframework/http')
-rw-r--r-- | lib/private/appframework/http/dispatcher.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/appframework/http/dispatcher.php b/lib/private/appframework/http/dispatcher.php index 7f2717951a5..29a661d5743 100644 --- a/lib/private/appframework/http/dispatcher.php +++ b/lib/private/appframework/http/dispatcher.php @@ -30,6 +30,7 @@ use \OC\AppFramework\Utility\ControllerMethodReflector; use OCP\AppFramework\Controller; use OCP\AppFramework\Http\Response; +use OCP\AppFramework\Http\DataResponse; use OCP\IRequest; @@ -154,8 +155,8 @@ class Dispatcher { $response = call_user_func_array(array($controller, $methodName), $arguments); - // format response if not of type response - if(!($response instanceof Response)) { + // format response + if($response instanceof DataResponse || !($response instanceof Response)) { // get format from the url format or request format parameter $format = $this->request->getParam('format'); |