Skip to content

Commit

Permalink
Misunderstanding with $config
Browse files Browse the repository at this point in the history
  • Loading branch information
n0nag0n committed Mar 17, 2024
1 parent f4c5405 commit 9786820
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flight/net/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public function __construct(array $config = [])
$config = [
'url' => str_replace('@', '%40', self::getVar('REQUEST_URI', '/')),
'base' => str_replace(['\\', ' '], ['/', '%20'], \dirname(self::getVar('SCRIPT_NAME'))),
'method' => ($config['method'] ?? self::getMethod()),
'method' => self::getMethod(),
'referrer' => self::getVar('HTTP_REFERER'),
'ip' => self::getVar('REMOTE_ADDR'),
'ajax' => 'XMLHttpRequest' === self::getVar('HTTP_X_REQUESTED_WITH'),
Expand Down

0 comments on commit 9786820

Please sign in to comment.