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
|
@@ 79-82 (lines=4) @@
|
| 76 |
|
$format = $this->request->getParam('format'); |
| 77 |
|
|
| 78 |
|
// if none is given try the first Accept header |
| 79 |
|
if($format === null) { |
| 80 |
|
$headers = $this->request->getHeader('Accept'); |
| 81 |
|
$format = $controller->getResponderByHTTPHeader($headers, 'xml'); |
| 82 |
|
} |
| 83 |
|
|
| 84 |
|
return $format; |
| 85 |
|
} |