report api version 1.13.0

This commit is contained in:
Uwe Steinmann 2023-10-10 12:30:54 +02:00
parent 24d1dfa17d
commit 5ccec6a942

View File

@ -1499,7 +1499,7 @@ class SeedDMS_ExtPaperless_RestAPI_Auth { /* {{{ */
} }
/* Pretent to be paperless ngx 1.10.0 with api version 2 */ /* Pretent to be paperless ngx 1.10.0 with api version 2 */
$response = $response->withHeader('x-api-version', '2')->withHeader('x-version', '1.10.0'); $response = $response->withHeader('x-api-version', '2')->withHeader('x-version', '1.13.0');
$logger->log("Invoke paperless middleware for method ".$request->getMethod()." on '".$request->getUri()->getPath()."'", PEAR_LOG_INFO); $logger->log("Invoke paperless middleware for method ".$request->getMethod()." on '".$request->getUri()->getPath()."'", PEAR_LOG_INFO);
if(!in_array($request->getUri()->getPath(), array('api/token/', 'api/'))) { if(!in_array($request->getUri()->getPath(), array('api/token/', 'api/'))) {