-
-
Notifications
You must be signed in to change notification settings - Fork 167
Closed
Description
When request target is origin-form and contain right absolute path, like this:
GET /somepath?param=http://example.com HTTP/1.1
RequestHeaderParser throw InvalidArgumentException('Invalid absolute-form request-target')
This error can be corrected by changing the test condition, for example
((!isset($parts['scheme'], $parts['host']) || $parts['scheme'] !== 'http' || isset($parts['fragment'])) && !isset($parts['path']))