mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-10 22:42:14 +00:00
Added better header parsing to Request-class.
- Added `tryParse` argument to the `getHeader` method. When enabled the method will try to parse headers from both server and client-side (enabled by default). - Simplified references that checks for both variants of header (http/non http). - Simplified getIp method of the Request-class.
This commit is contained in:
@@ -466,7 +466,7 @@ class SimpleRouter
|
||||
/**
|
||||
* Get the request
|
||||
*
|
||||
* @return \Pecee\Http\Request
|
||||
* @return Request
|
||||
*/
|
||||
public static function request(): Request
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user