add mock api for contratti
This commit is contained in:
1 parent
04ed2a7120
commit
ec26db0bfa
3 files changed
+32
-2
No files matched your search
@@ -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