mirror of
https://github.com/nextcloud/server.git
synced 2026-07-13 20:01:15 -04:00
fix(dav): Load ProfilerPlugin only when profiler is enabled
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
1940565e5e
commit
672b3cfee5
1 changed files with 3 additions and 1 deletions
|
|
@ -149,7 +149,9 @@ class Server {
|
|||
$this->server->httpRequest->setUrl($this->request->getRequestUri());
|
||||
$this->server->setBaseUri($this->baseUri);
|
||||
|
||||
$this->server->addPlugin(new ProfilerPlugin($this->request));
|
||||
if ($this->profiler->isEnabled()) {
|
||||
$this->server->addPlugin(new ProfilerPlugin($this->request));
|
||||
}
|
||||
$this->server->addPlugin(new BlockLegacyClientPlugin(
|
||||
\OCP\Server::get(IConfig::class),
|
||||
\OCP\Server::get(ThemingDefaults::class),
|
||||
|
|
|
|||
Loading…
Reference in a new issue