add mock api for contratti
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user