www/nginx: LogsController fix (#4120)

This commit is contained in:
kulikov-a
2024-08-08 11:15:53 +02:00
committed by GitHub
parent 9a50ba8859
commit 047c8ba208
@@ -287,11 +287,12 @@ class LogsController extends ApiControllerBase
*/
private function sendConfigdToClient($command)
{
$backend = new Backend();
// must be passed directly -> OOM Problem
$this->response->setContent($backend->configdRun($command));
$this->response->setStatusCode(200, "OK");
$this->response->setContentType('application/json', 'UTF-8');
return $this->response->send();
if (!$this->response->isSent()) {
$backend = new Backend();
$this->response->setContent($backend->configdRun($command));
$this->response->setStatusCode(200, "OK");
$this->response->setContentType('application/json', 'UTF-8');
}
}
}