add mock api for contratti

This commit is contained in:
2026-07-16 14:43:39 +02:00
parent 04ed2a7120
commit ec26db0bfa
3 changed files with 32 additions and 2 deletions
+1 -2
View File
@@ -18,8 +18,7 @@ class Request {
return $_GET;
}
public function header(string $name): ?string
{
public function header(string $name): ?string {
$key = 'HTTP_' . strtoupper(str_replace('-', '_', $name));
return $_SERVER[$key] ?? null;
}