Fix that (raw)content is always executed during Module::run()

This commit is contained in:
Philipp 2021-11-27 13:41:37 +01:00
parent f245fdaa5d
commit 7cba74bb6c
No known key found for this signature in database
GPG key ID: 24A7501396EB5432

View file

@ -220,7 +220,8 @@ abstract class BaseModule implements ICanHandleRequests
case Router::PUT:
$this->put();
break;
default:
}
$timestamp = microtime(true);
// "rawContent" is especially meant for technical endpoints.
// This endpoint doesn't need any theme initialization or other comparable stuff.
@ -236,8 +237,6 @@ abstract class BaseModule implements ICanHandleRequests
} finally {
$this->profiler->set(microtime(true) - $timestamp, 'content');
}
break;
}
return $this->response->generate();
}