We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 57f93cc + 5b625ec commit 2a864a0Copy full SHA for 2a864a0
app/http.php
@@ -11,6 +11,7 @@
11
use Swoole\Runtime;
12
use Utopia\CLI\Console;
13
use Utopia\Http\Http;
14
+use Utopia\Http\Response;
15
use Utopia\Http\Adapter\Swoole\Server;
16
use Utopia\Orchestration\Adapter\DockerAPI;
17
use Utopia\Orchestration\Orchestration;
@@ -23,6 +24,11 @@
23
24
Runtime::enableCoroutine(true, SWOOLE_HOOK_ALL);
25
26
Http::setMode((string)Http::getEnv('OPR_EXECUTOR_ENV', Http::MODE_TYPE_PRODUCTION));
27
+Http::onRequest()
28
+ ->inject('response')
29
+ ->action(function (Response $response) {
30
+ $response->addHeader('Server', 'Executor');
31
+ });
32
33
run(function () {
34
$orchestration = new Orchestration(new DockerAPI(
0 commit comments