add mock api for contratti

This commit is contained in:
pierpaolo.mammi committed 2026-07-16 14:43:39 +02:00
1 parent 04ed2a7120
commit ec26db0bfa
3 files changed
+32 -2

No files matched your search

+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;
}