lib/private/AppFramework/Http/Dispatcher.php 1 location
|
@@ 169-172 (lines=4) @@
|
| 166 |
|
$format = $this->request->getParam('format'); |
| 167 |
|
|
| 168 |
|
// if none is given try the first Accept header |
| 169 |
|
if($format === null) { |
| 170 |
|
$headers = $this->request->getHeader('Accept'); |
| 171 |
|
$format = $controller->getResponderByHTTPHeader($headers, null); |
| 172 |
|
} |
| 173 |
|
|
| 174 |
|
if ($format !== null) { |
| 175 |
|
$response = $controller->buildResponse($response, $format); |
lib/private/AppFramework/Middleware/OCSMiddleware.php 1 location
|
@@ 137-140 (lines=4) @@
|
| 134 |
|
$format = $this->request->getParam('format'); |
| 135 |
|
|
| 136 |
|
// if none is given try the first Accept header |
| 137 |
|
if($format === null) { |
| 138 |
|
$headers = $this->request->getHeader('Accept'); |
| 139 |
|
$format = $controller->getResponderByHTTPHeader($headers, 'xml'); |
| 140 |
|
} |
| 141 |
|
|
| 142 |
|
return $format; |
| 143 |
|
} |