Skip to content

Error when header parsing #207

@gilberg-vrn

Description

@gilberg-vrn

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']))

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions